8 lines
184 B
Plaintext
8 lines
184 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
case $(printf "logout\\nshutdown\\nrestart" | rofi -dmenu -i -p 'power') in
|
||
|
logout) mate-session-save --logout ;;
|
||
|
shutdown) poweroff ;;
|
||
|
restart) reboot ;;
|
||
|
esac
|