diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-26 13:56:54 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-26 13:56:54 -0600 |
| commit | e6f27c608b0305f9a9b276f7ac547f1f03589217 (patch) | |
| tree | 1bd804f5e8451aa4821a5db7490c086207f18c5d /dotfiles/hyprland/.local | |
| parent | d2db9c70434527d25ad4f527bea613185d726c88 (diff) | |
| download | archsetup-e6f27c608b0305f9a9b276f7ac547f1f03589217.tar.gz archsetup-e6f27c608b0305f9a9b276f7ac547f1f03589217.zip | |
feat(hyprland): add wlogout exit menu with dupre theme
- Add wlogout config with nerd font icons and dupre colors
- Add wofi power-menu as alternative (disabled)
- Use pgrep to prevent multiple instances
- Theme: gold highlight on hover, invisible borders
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'dotfiles/hyprland/.local')
| -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 |
