From 7267c642c64a79f33c425a15e78892554b38f6d4 Mon Sep 17 00:00:00 2001 From: LM-LCL Date: Wed, 20 Nov 2024 09:48:01 +0100 Subject: Rofi --- config.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index ea73e68..b492963 100644 --- a/config.h +++ b/config.h @@ -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 ) -- cgit v1.2.3