samedami 9d56d3e272
Add 'shelp' script
Also add simple description comment to all script.
2020-05-15 20:56:33 +02:00

14 lines
349 B
Bash
Executable File

#!/usr/bin/env sh
# Power menu.
WHAT="$(printf " Shutdown\n Reboot\n Lock\n Suspend" | rofi -dmenu -i -p 'Powermenu' -l 4 -width 10px)"
if [ -z "$WHAT" ]; then exit; fi
case "$WHAT" in
" Shutdown") systemctl poweroff;;
" Suspend") lockscreen; systemctl suspend;;
" Lock") lockscreen;;
" Reboot") systemctl reboot
esac