myhome/.local/bin/shut-sup-rest

12 lines
227 B
Plaintext
Raw Normal View History

2020-05-09 13:43:39 +02:00
#!/bin/bash
choices="Lock\nSuspend\nReboot\nShutdown"
chosen=$(echo -e "$choices" | dmenu -i)
case "$chosen" in
Lock) slock ;;
Suspend) sudo s2ram && slock ;;
2020-05-09 13:43:39 +02:00
Reboot) sudo reboot ;;
Shutdown) sudo shutdown -h now ;;
esac