diff options
| author | Fuwn <[email protected]> | 2024-05-23 16:26:34 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-23 16:34:50 -0700 |
| commit | 27c83f178d9ca33efc5f068cb510907750e10847 (patch) | |
| tree | 511f6994b75a89be3c1d6fb3d0fbff11118da212 /config.h | |
| parent | fix(dwm.c): pertag and combo compatibility (diff) | |
| download | seiwm-27c83f178d9ca33efc5f068cb510907750e10847.tar.xz seiwm-27c83f178d9ca33efc5f068cb510907750e10847.zip | |
feat(dwm.c): add nametag patch + fix
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -53,7 +53,15 @@ static Sp scratchpads[] = { }; /* tagging */ -static const char *tags[] = { "一", "二", "三", "四", "五", "六", "七", "八", "九" }; +#define MAX_TAGNAME_LEN 14 /* excludes TAG_PREPEND */ +#define TAG_PREPEND "%s" +#define MAX_TAGLEN 16 /* altogether */ +#define TAGS { "一", "二", "三", "四", "五", "六", "七", "八", "九" } +static char tags[][MAX_TAGLEN] = TAGS; +/* append_nametag: + * 1: append the new nametag to the original tag label from above + * 0: overwrite original tag label with new nametag */ +static const unsigned int append_nametag = 1; static const Rule rules[] = { /* xprop(1): @@ -243,6 +251,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_Left, tagmon, {.i = -1 } }, { MODKEY, XK_Right, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_Right, tagmon, {.i = +1 } }, + {MODKEY, XK_n, nametag, {0}}, { MODKEY, XK_Page_Up, shiftview, { .i = -1 } }, { MODKEY|ShiftMask, XK_Page_Up, shifttag, { .i = -1 } }, |