commit 5a150163dd6ade7a8951b9f55bf78354cbee370e parent f896ceabe1ac5259d2285f3c6d0937d11c19507f Author: Ed van Bruggen <edvb54@gmail.com> Date: Sat, 3 Dec 2016 22:00:26 -0800 Add dmw-mode.sh, changes dwm tiling mode Diffstat:
dwm-mode.sh | | | 34 | ++++++++++++++++++++++++++++++++++ |
1 file changed, 34 insertions(+), 0 deletions(-)
diff --git a/dwm-mode.sh b/dwm-mode.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# Change dwm window mode with dmenu + +# note that you have to manualy add and change the menu for your dwm config + +menu_list="tile\nfloating\nhtile\ndeck\ncentered\nspiral\ndwindle\ngaplessgrid\nhorizgrid\ntcl\nmonocle\n" +dmenucmd="dmenu $@ -l 11" +cmd=$(echo -ne "$menu_list" | eval "$dmenucmd") + +case $cmd in + tile) + xdotool key ctrl+super+t ;; + floating) + xdotool key ctrl+super+f ;; + htile) + xdotool key ctrl+super+h ;; + deck) + xdotool key ctrl+super+d ;; + centered) + xdotool key ctrl+super+c ;; + spiral) + xdotool key ctrl+super+s ;; + dwindle) + xdotool key ctrl+super+shift+s ;; + gaplessgrid) + xdotool key ctrl+super+g ;; + horizgrid) + xdotool key ctrl+super+shift+g ;; + tcl) + xdotool key ctrl+super+r ;; + monocle) + xdotool key ctrl+super+m ;; +esac +