myhome/.local/bin/shut-sup-rest
Marcin Woźniak 747cf9c899 Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-09-09 23:00:20 +02:00

12 lines
232 B
Bash
Executable File

#!/bin/bash
choices="Lock\nSuspend\nReboot\nShutdown"
chosen=$(echo -e "$choices" | dmenu -i)
case "$chosen" in
Lock) slock ;;
Suspend) sudo pm-suspend && slock ;;
Reboot) sudo reboot ;;
Shutdown) sudo shutdown -h now ;;
esac