mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Final debug on sysact
This commit is contained in:
parent
29efe380d4
commit
628d9bcbf1
@ -10,7 +10,7 @@ esac
|
||||
|
||||
pidof i3 && renew="i3 restart" && leave="i3 exit" && wm="i3"
|
||||
pidof dwm && renew="kill -HUP $(pidof -s dwm)" && leave="kill -TERM $(pidof -s dwm)" && wm="dwm"
|
||||
pidof bspwm && renew="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm/bspwmrc" && wm "bspwm"
|
||||
pidof bspwm && renew="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm/bspwmrc" && wm="bspwm"
|
||||
|
||||
cmds="\
|
||||
🔒 lock slock
|
||||
@ -20,7 +20,7 @@ cmds="\
|
||||
🖥 shutdown ${shut:-sudo -A shutdown -h now}"
|
||||
|
||||
# If both wm and renew command are known add it to the menu
|
||||
[ -n "$wm" ] && [ -n "$renew" ] && cmds="$(echo "$cmds" | sed "3i♻ renew ${wm} ${renew}")"
|
||||
[ -n "$wm" ] && [ -n "$renew" ] && cmds="$(echo "$cmds" | sed "3i♻ renew $wm $renew")"
|
||||
|
||||
choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user