blob: 49625807a619fb634ff6c122d61c2acf119fc2c7 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
case "$(printf "shutdown\nreboot\nlogout\nsuspend\nlock" | eval bemenu -p 'power')" in
shutdown) exec systemctl poweroff;;
reboot) exec systemctl reboot;;
logout) exec loginctl terminate-session "${XDG_SESSION_ID-}";;
suspend) exec systemctl suspend;;
lock) exec swaylock -f -c 000000;;
esac
|