diff options
| author | pml68 <contact@pml68.me> | 2024-08-09 01:25:50 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-08-09 01:25:50 +0200 |
| commit | 09ab72f2cac9078532d0c308905cd7c2b0f812ed (patch) | |
| tree | 6284fd4483013dae798ed1609e3b7242b6e6f7d3 /dwm/config.h | |
| parent | feat(dwm): add laptop specific options (diff) | |
| download | suckless-setup-09ab72f2cac9078532d0c308905cd7c2b0f812ed.tar.gz | |
feat(dwm): add holdbar patch
Diffstat (limited to 'dwm/config.h')
| -rw-r--r-- | dwm/config.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dwm/config.h b/dwm/config.h index abb5b51..4930269 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -4,7 +4,7 @@ static const unsigned int borderpx = 0; /* border pixel of windows */ static const unsigned int gappx = 15; /* gaps between windows */ static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ +static const int showbar = 0; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const int splitstatus = 1; /* 1 for split status items */ static const char *splitdelim = ";"; /* Character used for separating status */ @@ -63,6 +63,7 @@ static const Layout layouts[] = { {MODKEY | ControlMask, KEY, toggleview, {.ui = 1 << TAG}}, \ {MODKEY | ShiftMask, KEY, tag, {.ui = 1 << TAG}}, \ {MODKEY | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}}, +#define HOLDKEY XK_b /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) \ @@ -91,13 +92,13 @@ static const char *previouscmd[] = {"adb", "shell", "input", static const char *qalccmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", - col_gray4, "-C", "-l", "1", NULL}; + col_gray4, "-C", "-l", "1", NULL}; static const Key keys[] = { /* modifier key function argument */ {MODKEY, XK_p, spawn, {.v = dmenucmd}}, {MODKEY | ShiftMask, XK_Return, spawn, {.v = termcmd}}, - {MODKEY, XK_b, togglebar, {0}}, + {MODKEY, XK_q, togglebar, {0}}, {MODKEY, XK_j, focusstack, {.i = +1}}, {MODKEY, XK_k, focusstack, {.i = -1}}, {MODKEY, XK_i, incnmaster, {.i = +1}}, @@ -122,6 +123,7 @@ static const Key keys[] = { {MODKEY | ShiftMask, XK_period, tagmon, {.i = +1}}, TAGKEYS(XK_1, 0) TAGKEYS(XK_2, 1) TAGKEYS(XK_3, 2) TAGKEYS(XK_4, 3) TAGKEYS(XK_5, 4) TAGKEYS(XK_6, 5){MODKEY | ShiftMask, XK_q, quit, {0}}, + {MODKEY, HOLDKEY, holdbar, {0}}, {0, XK_Print, spawn, {.v = prtscrcmd}}, {MODKEY | ShiftMask, XK_h, spawn, {.v = kblayoutcmd}}, {MODKEY | ShiftMask, XK_f, spawn, {.v = firefoxcmd}}, |
