#!/bin/bash # Power menu using wofi # Dupre theme with Nerd Font icons options="󰌾\n󰍃\n󰒲\n󰖔\n󰜉\n󰐥" selected=$(echo -e "$options" | wofi --dmenu \ --cache-file /dev/null \ --prompt "" \ --hide-scroll \ --hide-search \ --gtk-dark \ --layer overlay \ --width 700 \ --height 700 \ --columns 3 \ --lines 2 \ --style ~/.config/wofi/power-menu.css \ --conf /dev/null) case "$selected" in "󰌾") hyprlock ;; "󰍃") notify-send "Power Menu" "Logout disabled for testing" # hyprctl dispatch exit ;; "󰒲") notify-send "Power Menu" "Suspend disabled for testing" # systemctl suspend ;; "󰖔") notify-send "Power Menu" "Hibernate disabled for testing" # systemctl hibernate ;; "󰜉") notify-send "Power Menu" "Reboot disabled for testing" # systemctl reboot ;; "󰐥") notify-send "Power Menu" "Shutdown disabled for testing" # systemctl poweroff ;; esac