11 lines
369 B
Bash
Executable file
11 lines
369 B
Bash
Executable file
#!/bin/env bash
|
|
|
|
choice=$(printf " Lock\n Logout\n Suspend\n Reboot\n Shutdown" | rofi -dmenu)
|
|
|
|
case "$choice" in
|
|
" Lock") sh $HOME/bin/screen-lock.sh ;;
|
|
" Logout") pkill -KILL -u "$USER" ;;
|
|
" Suspend") sh $HOME/bin/screen-lock.sh --suspend ;;
|
|
" Reboot") systemctl reboot ;;
|
|
" Shutdown") systemctl poweroff ;;
|
|
esac
|