aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorgonzo <gonzo@toniatuh.com>2023-05-16 23:14:12 +0200
committergonzo <gonzo@toniatuh.com>2023-05-16 23:14:12 +0200
commit615319809922c1f673c6fa0dc6c38db9d0a5b005 (patch)
tree9655af6649315fcfba2f02acd6ce65d4b8996679 /dwm.c
parent447c0a423e378f8e82537aa751178ab8291da262 (diff)
downloaddwm-615319809922c1f673c6fa0dc6c38db9d0a5b005.tar.gz
added border toggle
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 78462e9..bb287a6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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)