summaryrefslogtreecommitdiff
path: root/dwmc
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-26 20:25:23 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-26 20:25:23 -0500
commita068f40be0d17ba8a44f7cd2edb0e60d7d2453ad (patch)
tree4de9a9b6d9f938d1b817e82d89941bb2b18dbc0a /dwmc
parentf95bb05a3b2b02c8e6921b128b6619acc79843cb (diff)
Implement dwmc patch
Diffstat (limited to 'dwmc')
-rwxr-xr-xdwmc40
1 files changed, 40 insertions, 0 deletions
diff --git a/dwmc b/dwmc
new file mode 100755
index 0000000..5ba22cc
--- /dev/null
+++ b/dwmc
@@ -0,0 +1,40 @@
+#!/usr/bin/env sh
+
+signal() {
+ xsetroot -name "fsignal:$*"
+}
+
+case $# in
+1)
+ case $1 in
+ setlayout | view | viewall | togglebar | togglefloating | zoom | killclient | quit | togglegaps | defaultgaps)
+ signal "$1"
+ ;;
+ *)
+ echo "Unknown command or missing one argument."
+ exit 1
+ ;;
+ esac
+ ;;
+2)
+ case $1 in
+ view)
+ signal "$1" ui "$2"
+ ;;
+ viewex | toggleviewex | tagex | toggletagex | setlayoutex | focusstack | incnmaster | focusmon | tagmon | rotatestack | movestack | incrgaps | incrigaps | incrogaps | incrihgaps | incrivgaps | incrohgaps | incrovgaps | sigstatusbar)
+ signal "$1" i "$2"
+ ;;
+ setmfact | setcfact)
+ signal "$1" f "$2"
+ ;;
+ *)
+ echo "Unknown command or one too many arguments."
+ exit 1
+ ;;
+ esac
+ ;;
+*)
+ echo "Too many arguments."
+ exit 1
+ ;;
+esac