31 lines
711 B
Bash
Executable File
31 lines
711 B
Bash
Executable File
#!/bin/bash
|
|
|
|
dmenu="dmenu -p toggle"
|
|
|
|
choice=$(echo -e "picom\nwindowcovering\nframeborderwidth\nresizestep" | $dmenu)
|
|
|
|
case $choice in
|
|
|
|
picom)
|
|
pidof picom && killall picom || picom --experimental-backends
|
|
;;
|
|
|
|
windowcovering)
|
|
herbstclient set hide_covered_windows toggle
|
|
;;
|
|
|
|
frameborderwidth)
|
|
frameborderwidth=$(echo -e "enter width..." | dmenu)
|
|
herbstclient set frame_border_width $frameborderwidth
|
|
;;
|
|
|
|
resizestep)
|
|
resizestep=$(echo -e "0.04\n0.01\n0.004\n0.001" | dmenu)
|
|
confpath=~/.config/herbstluftwm/autostart
|
|
source <(awk -v RS='' '/M=Mod/' $confpath)
|
|
source <(awk -v RS='' '/key\(\)/' $confpath)
|
|
source <(grep "resizestep" $confpath | grep -v "^resizestep=")
|
|
;;
|
|
|
|
esac
|