diff options
| author | LM-LCL <hello@exaltedelite.club> | 2024-11-20 09:48:01 +0100 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2024-11-20 09:48:01 +0100 |
| commit | 7267c642c64a79f33c425a15e78892554b38f6d4 (patch) | |
| tree | cf406ea6caa977ae66528cb8bf5509f492c7ce70 /config.h | |
| parent | d7b0b971266fb97f3170daa9ece88148d4793116 (diff) | |
Rofi
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -73,20 +73,20 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_white, "-sb", col_gray2, "-sf", col_white, NULL }; +static const char *roficmd[] = { "rofi", "-show", "drun" }; +static const char *rofitab[] = { "rofi", "-show", "window" }; static const char *termcmd[] = { "st", NULL }; #include "movestack.c" static const Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd} }, + { MODKEY, XK_p, spawn, {.v = roficmd} }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd} }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1} }, { MODKEY, XK_k, focusstack, {.i = -1} }, { MODKEY, XK_i, incnmaster, {.i = +1} }, { MODKEY, XK_d, incnmaster, {.i = -1} }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY|ShiftMask, XK_j, movestack, {.i = +1} }, { MODKEY|ShiftMask, XK_k, movestack, {.i = -1} }, { MODKEY, XK_Return, zoom, {0} }, @@ -102,8 +102,12 @@ static const Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1} }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1} }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1} }, - { MODKEY, XK_Tab, altTabStart, {.i = 1} }, - { MODKEY, XK_grave, altTabStart, {.i = 0} }, + { MODKEY, XK_Tab, spawn, {.v = rofitab} }, + { MODKEY, XK_grave, spawn, {.v = rofitab} }, + { MODKEY, XK_h, viewtoleft, {0} }, + { MODKEY, XK_l, viewtoright, {0} }, + { MODKEY|ShiftMask, XK_h, tagtoleft, {0} }, + { MODKEY|ShiftMask, XK_l, tagtoright, {0} }, TAGKEYS( XK_1, 0 ) TAGKEYS( XK_2, 1 ) TAGKEYS( XK_3, 2 ) |
