Initial commit for public dots
This commit is contained in:
23
.config/herbstluftwm/scripts/exitmenu
Executable file
23
.config/herbstluftwm/scripts/exitmenu
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
dmenu="dmenu -p exit"
|
||||
choice=$(echo -e "shutdown\nrestart\nlogoff\nscreenlock" | $dmenu)
|
||||
|
||||
case $choice in
|
||||
|
||||
shutdown)
|
||||
sudo halt
|
||||
;;
|
||||
|
||||
restart)
|
||||
sudo shutdown -r now
|
||||
;;
|
||||
|
||||
logoff)
|
||||
herbstclient quit
|
||||
;;
|
||||
|
||||
screenlock)
|
||||
i3lock -c 000000
|
||||
;;
|
||||
|
||||
esac
|
||||
10
.config/herbstluftwm/scripts/resizestep
Executable file
10
.config/herbstluftwm/scripts/resizestep
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
dmenu="dmenu -p resize"
|
||||
|
||||
resizestep=$(echo -e "0.04\n0.01\n0.004\n0.001" | $dmenu)
|
||||
|
||||
confpath=$XDG_CONFIG_HOME/herbstluftwm/autostart
|
||||
|
||||
source <(awk -v RS='' '/M=Mod/' $confpath)
|
||||
source <(awk -v RS='' '/key\(\)/' $confpath)
|
||||
source <(grep "resizestep" $confpath | grep -v "^resizestep=")
|
||||
30
.config/herbstluftwm/scripts/togglemaster
Executable file
30
.config/herbstluftwm/scripts/togglemaster
Executable file
@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
6
.config/herbstluftwm/scripts/volume
Executable file
6
.config/herbstluftwm/scripts/volume
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
dmenu="dmenu -p volume"
|
||||
|
||||
volume=$(echo -e "0\n25\n50\n75\n100" | $dmenu)
|
||||
pulsemixer --set-volume $volume
|
||||
Reference in New Issue
Block a user