dwmc added

This commit is contained in:
Luke Smith 2020-01-24 06:20:24 -05:00
parent d65404e8e5
commit 236c6a7f2f
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 40 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,4 +1,2 @@
*.orig *.orig
*.rej *.rej
dwmc
dwmc

40
dwmc Executable file
View file

@ -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