ArchRice/rofi/powermenu.sh
2025-05-11 17:24:18 +02:00

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