diff options
| -rw-r--r-- | config.h | 1 | ||||
| -rw-r--r-- | dwm.1 | 3 | ||||
| -rw-r--r-- | dwm.c | 9 |
3 files changed, 13 insertions, 0 deletions
@@ -67,6 +67,7 @@ static const Key keys[] = { { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, + { MODKEY|ShiftMask, XK_b, toggleborder, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, @@ -80,6 +80,9 @@ Send focused window to next screen, if any. .B Mod1\-b Toggles bar on and off. .TP +.B Mod1\-Shift\-b +Toggles borders on and off. +.TP .B Mod1\-t Sets tiled layout. .TP @@ -211,6 +211,7 @@ static void tag(const Arg *arg); static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); +static void toggleborder(const Arg *arg); static void togglefloating(const Arg *arg); static void togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); @@ -1710,6 +1711,14 @@ togglebar(const Arg *arg) } void +toggleborder(const Arg *arg) +{ + selmon->sel->bw = (selmon->sel->bw == borderpx ? 0 : borderpx); + arrange(selmon); +} + + +void togglefloating(const Arg *arg) { if (!selmon->sel) |
