diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -35,30 +35,29 @@ void spawn(const KeyArg arg); void toggle(const KeyArg arg); void kill(const KeyArg arg); void changeWS(const KeyArg arg); +void wToWS(const KeyArg arg); const char* alacritty[] = {"alacritty", NULL}; const char* rofi[] = {"rofi", "-i", "-show", "drun", NULL}; +#define MOD Mod1Mask +#define SHIFT ShiftMask + #define WSKEY(K, X) \ - {K, mod, changeWS, {.num = X - 1}}, + {K, MOD, changeWS, {.num = X}}, \ + {K, MOD|SHIFT, wToWS, {.num = X}}, -unsigned int mod = Mod1Mask; static struct Key keyBinds[] = { //Key //Modifiers //Func //Args - {XK_e, mod, exit, {NULL}}, - {XK_Return, mod, spawn, {.str = alacritty}}, - {XK_d, mod, spawn, {.str = rofi}}, - {XK_t, mod, toggle, {NULL}}, - {XK_q, mod, kill, {NULL}}, - {XK_1, mod, changeWS, {.num = 1}}, - {XK_2, mod, changeWS, {.num = 2}}, - {XK_3, mod, changeWS, {.num = 3}}, - {XK_4, mod, changeWS, {.num = 4}}, - {XK_5, mod, changeWS, {.num = 5}}, - //WSKEY(XK_1, 1) - //WSKEY(XK_2, 2) - //WSKEY(XK_3, 3) - //WSKEY(XK_4, 4) - //WSKEY(XK_5, 5) + {XK_e, MOD, exit, {NULL}}, + {XK_Return, MOD, spawn, {.str = alacritty}}, + {XK_d, MOD, spawn, {.str = rofi}}, + {XK_t, MOD, toggle, {NULL}}, + {XK_q, MOD, kill, {NULL}}, + WSKEY(XK_1, 1) + WSKEY(XK_2, 2) + WSKEY(XK_3, 3) + WSKEY(XK_4, 4) + WSKEY(XK_5, 5) }; |
