10 lines
322 B
Bash
Executable File
10 lines
322 B
Bash
Executable File
|
|
choice=$(printf "Shutdown\nReboot\nSuspend\nLogout" | rofi -dmenu -config ~/.config/rofi/config.rasi -p "╔═[ SYSTEM MENU ]═╗")
|
|
|
|
case "$choice" in
|
|
" Shutdown") systemctl poweroff ;;
|
|
" Reboot") systemctl reboot ;;
|
|
" Suspend") systemctl suspend ;;
|
|
" Logout") i3-msg exit ;; # adjust for your WM
|
|
esac
|