diff options
| author | gonzo <gonzo@toniatuh.com> | 2023-05-16 23:14:12 +0200 |
|---|---|---|
| committer | gonzo <gonzo@toniatuh.com> | 2023-05-16 23:14:12 +0200 |
| commit | 615319809922c1f673c6fa0dc6c38db9d0a5b005 (patch) | |
| tree | 9655af6649315fcfba2f02acd6ce65d4b8996679 /dwm.c | |
| parent | 447c0a423e378f8e82537aa751178ab8291da262 (diff) | |
| download | dwm-615319809922c1f673c6fa0dc6c38db9d0a5b005.tar.gz | |
added border toggle
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |
