diff options
author | ZachIR <zachir@protonmail.com> | 2020-09-13 22:37:45 -0500 |
---|---|---|
committer | ZachIR <zachir@protonmail.com> | 2020-09-13 22:37:45 -0500 |
commit | b07674dc03506126b26209689a0fff6efcdc3fcc (patch) | |
tree | c9e95fce1ce0a968b2e3c004685763e4fb8ac282 /dwmc | |
parent | a8e9513783f335b1ac7255e40a663adfffc4b475 (diff) |
Update repo to 09132020
Diffstat (limited to 'dwmc')
-rwxr-xr-x | dwmc | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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) + 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) + signal $1 i $2 + ;; + setmfact) + signal $1 f $2 + ;; + *) + echo "Unknown command or one too many arguments." + exit 1 + ;; + esac + ;; +*) + echo "Too many arguments." + exit 1 + ;; +esac |