exit
fi
-answer=$(echo "cancel
+answer="$(echo 'cancel
shutdown
logout
reboot
lock screen
-kill wm" | instantmenu -l 10 -w -1 -c -n -F -p "do you want to shut down?")
+suspend
+restart wm' | instantmenu -l 10 -w -1 -c -n -F -p 'shutdown menu' -q 'select')"
# if there are apps open, ask for confirmation
zconfirm() {
}
case "$answer" in
-s*)
+shut*)
zconfirm "shutdown"
rm ~/.instantosrunning
sleep 0.4
shutdown now
;;
-r*)
+reb*)
zconfirm "reboot"
rm ~/.instantosrunning
sleep 0.4
loc*)
ilock
;;
-k*)
+sus*)
+ systemctl suspend
+ ilock
+ ;;
+res*)
pkill instantwm
;;
*)