script-linux/power

16 lines
221 B
Bash
Executable File

#!/bin/bash
act=$(echo -e "shutdown\nreboot\nlock" | dmenu -p "action:")
case $act in
"shutdown")
shutdown 0
;;
"reboot")
reboot
;;
"lock")
lockscreen
;;
esac