dmenium

small collection of dmenu scripts
git clone git://edryd.org/dmenium
Log | Files | Refs | LICENSE

dwm_mode (782B)


      1 #!/usr/bin/env bash
      2 # Change dwm window mode with dmenu
      3 
      4 # note that you have to manualy add and change the menu for your dwm config
      5 
      6 menu_list="tile\nfloating\nhtile\ndeck\ncentered\nspiral\ndwindle\ngaplessgrid\nhorizgrid\ntcl\nmonocle\n"
      7 dmenucmd="dmenu $@ -l 11"
      8 cmd=$(echo -ne "$menu_list" | eval "$dmenucmd")
      9 
     10 case $cmd in
     11 	tile)
     12 		xdotool key ctrl+super+t ;;
     13 	floating)
     14 		xdotool key ctrl+super+f ;;
     15 	htile)
     16 		xdotool key ctrl+super+h ;;
     17 	deck)
     18 		xdotool key ctrl+super+d ;;
     19 	centered)
     20 		xdotool key ctrl+super+c ;;
     21 	spiral)
     22 		xdotool key ctrl+super+s ;;
     23 	dwindle)
     24 		xdotool key ctrl+super+shift+s ;;
     25 	gaplessgrid)
     26 		xdotool key ctrl+super+g ;;
     27 	horizgrid)
     28 		xdotool key ctrl+super+shift+g ;;
     29 	tcl)
     30 		xdotool key ctrl+super+r ;;
     31 	monocle)
     32 		xdotool key ctrl+super+m ;;
     33 esac
     34