12 lines
355 B
Bash
Executable File
12 lines
355 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | dmenu \
|
|
-i -z 200 -p \
|
|
"Power:" -l 5)" in
|
|
Shutdown) exec systemctl poweroff;;
|
|
Restart) exec systemctl reboot;;
|
|
Logout) kill -HUP $XDG_SESSION_PID;;
|
|
Suspend) exec systemctl suspend;;
|
|
Lock) exec systemctl --user start lock.target;;
|
|
esac
|