12 lines
232 B
Plaintext
12 lines
232 B
Plaintext
|
#!/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
|