quit (299B)
1 #!/usr/bin/env bash 2 3 menu_list="cancel\nsuspend\nshutdown\nreboot\nlock" 4 sel=$(echo -e "$menu_list" | dmenu $@ -i -l 5) 5 6 case "$sel" in 7 cancel) exit ;; 8 suspend) systemctl suspend & ;; 9 shutdown) systemctl poweroff & ;; 10 reboot) systemctl reboot & ;; 11 lock) slock & ;; 12 esac