use win-title script for customizing window title (#213)

this removes the cli flag `-T` as well as related config.h options.

Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
This commit is contained in:
N-R-K
2022-02-23 09:23:22 +00:00
committed by GitHub
parent ad95012be9
commit e26c81fe9a
8 changed files with 103 additions and 69 deletions

10
nsxiv.h
View File

@ -111,12 +111,6 @@ typedef enum {
FF_TN_INIT = 4
} fileflags_t;
typedef enum {
SUFFIX_EMPTY,
SUFFIX_BASENAME,
SUFFIX_FULLPATH
} suffixmode_t;
typedef struct {
const char *name; /* as given by user */
const char *path; /* always absolute */
@ -265,8 +259,6 @@ struct opt {
Window embed; /* unsigned long */
char *geometry;
char *res_name;
const char *title_prefix;
suffixmode_t title_suffixmode;
/* misc flags: */
bool quiet;
@ -448,7 +440,7 @@ void win_toggle_bar(win_t*);
void win_clear(win_t*);
void win_draw(win_t*);
void win_draw_rect(win_t*, int, int, int, int, bool, int, unsigned long);
void win_set_title(win_t*, const char*);
void win_set_title(win_t*);
void win_set_cursor(win_t*, cursor_t);
void win_cursor_pos(win_t*, int*, int*);