dwmc (713B)
1 #!/usr/bin/env sh 2 3 signal() { 4 xsetroot -name "fsignal:$*" 5 } 6 7 case $# in 8 1) 9 case $1 in 10 setlayout | view | viewall | togglebar | togglefloating | zoom | killclient | quit | reload) 11 signal $1 12 ;; 13 *) 14 echo "Unknown command or missing one argument." 15 exit 1 16 ;; 17 esac 18 ;; 19 2) 20 case $1 in 21 view) 22 signal $1 ui $2 23 ;; 24 viewex | toggleviewex | tagex | toggletagex | setlayoutex | focusstack | incnmaster | focusmon | tagmon) 25 signal $1 i $2 26 ;; 27 setmfact) 28 signal $1 f $2 29 ;; 30 *) 31 echo "Unknown command or one too many arguments." 32 exit 1 33 ;; 34 esac 35 ;; 36 *) 37 echo "Too many arguments." 38 exit 1 39 ;; 40 esac