dwm/dwmc

41 lines
609 B
Text
Raw Normal View History

2020-01-24 11:20:24 +00:00
#!/usr/bin/env sh
signal() {
xsetroot -name "fsignal:$*"
}
case $# in
1)
case $1 in
2020-02-26 20:42:53 +00:00
setlayout | view | viewall | togglebar | togglefloating | zoom | killclient | quit | xrdb)
2020-01-24 11:20:24 +00:00
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