scripts/powermenu
2019-07-08 21:38:28 +01:00

9 lines
213 B
Bash
Executable File

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