Update dmenu.sh

Updated the script to shutdown and leave bspwm
This commit is contained in:
Mangeshrex 2021-04-24 11:43:24 +05:30 committed by GitHub
parent dd6fe4945f
commit 5793c4ec17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,13 +10,12 @@ esac
cmds="\
󱎜 lock slock
󰁬 leave bsp kill -TERM $(pgrep -u $USER "\bdwm$")
󰁪 renew bsp kill -HUP $(pgrep -u $USER "\bdwm$")
󰁬 leave bsp kill -TERM $(pkill bspwm sxhkd)
󱋑 hibernate slock ${hib:-systemctl suspend-then-hibernate -i}
󰻹 reboot ${reb:-sudo -A reboot}
󰧵 shutdown ${shut:- sudo shutdown now}
󰔱 display off xset dpms force off"
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu -p BYE -l 6 )" || exit 1
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu -p BYE -l 7 )" || exit 1
`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`