diff options
Diffstat (limited to 'dotfiles/hyprland/.local/bin/power-menu')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/power-menu | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dotfiles/hyprland/.local/bin/power-menu b/dotfiles/hyprland/.local/bin/power-menu new file mode 100755 index 0000000..878a17b --- /dev/null +++ b/dotfiles/hyprland/.local/bin/power-menu @@ -0,0 +1,45 @@ +#!/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 |
