scripts/powermenu

9 lines
213 B
Plaintext
Raw Normal View History

2019-03-15 15:25:34 +00:00
#!/usr/bin/env bash
2019-07-08 21:38:28 +01:00
case $(printf "lock\\nlogout\\nshutdown\\nrestart" | rofi -dmenu -i -p 'power') in
lock) i3exit lock ;;
2019-03-15 15:25:34 +00:00
logout) mate-session-save --logout ;;
shutdown) poweroff ;;
restart) reboot ;;
esac