From ef5a02a84c864a5a1d88dcf8c476c997b7f959ad Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Mon, 7 Jul 2025 20:44:01 +1000 Subject: [PATCH 1/4] Hide the search bar in power menu --- bin/omarchy-power-menu | 2 +- config/wofi/omarchy-power-menu.css | 65 ++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 config/wofi/omarchy-power-menu.css diff --git a/bin/omarchy-power-menu b/bin/omarchy-power-menu index 83157ba..f967770 100755 --- a/bin/omarchy-power-menu +++ b/bin/omarchy-power-menu @@ -11,7 +11,7 @@ show_power_menu() { \u2060󰜉 Restart 󰐥\u2063 Shutdown" # These first characters are invisible sort keys - local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 250 -O alphabetical) + local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 195 -O alphabetical --style ~/.config/wofi/omarchy-power-menu.css) case "$selection" in *Lock*) hyprlock ;; diff --git a/config/wofi/omarchy-power-menu.css b/config/wofi/omarchy-power-menu.css new file mode 100644 index 0000000..e6c9790 --- /dev/null +++ b/config/wofi/omarchy-power-menu.css @@ -0,0 +1,65 @@ +@define-color selected-text #7dcfff; +@define-color text #cfc9c2; +@define-color base #1a1b26; + +* { + font-family: 'CaskaydiaMono Nerd Font', monospace; + font-size: 18px; +} + +window { + margin: 0px; + padding: 20px; + background-color: @base; + opacity: 0.95; +} + +#inner-box { + margin: 0; + padding: 0; + border: none; + background-color: @base; +} + +#outer-box { + margin: 0; + padding: 20px; + border: none; + background-color: @base; +} + +#scroll { + margin: 0; + padding: 0; + border: none; + background-color: @base; +} + +#input { + display: none; + opacity: 0; + margin-top: -200px; +} + +#text { + margin: 5px; + border: none; + color: @text; +} + +#entry { + background-color: @base; +} + +#entry:selected { + outline: none; + border: none; +} + +#entry:selected #text { + color: @selected-text; +} + +#entry image { + -gtk-icon-transform: scale(0.7); +} \ No newline at end of file From c032a6aa37bc372b0299a6405a578f4ef1bffab4 Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Mon, 7 Jul 2025 21:07:13 +1000 Subject: [PATCH 2/4] Adding shortcuts to power options --- bin/omarchy-power-menu | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/omarchy-power-menu b/bin/omarchy-power-menu index f967770..a393f8f 100755 --- a/bin/omarchy-power-menu +++ b/bin/omarchy-power-menu @@ -5,13 +5,13 @@ # Function to show power menu show_power_menu() { - local menu_options="\u200B Lock -\u200C󰤄 Sleep -\u200D Relaunch -\u2060󰜉 Restart -󰐥\u2063 Shutdown" # These first characters are invisible sort keys + local menu_options="\u200B Lock (Super + Escape) +\u200C󰤄 Sleep (Shift + Super + Escape) +\u200D Relaunch (Alt + Super + Escape) +\u2060󰜉 Restart (Ctrl + Super + Escape) +󰐥\u2063 Shutdown (Ctrl + Shift + Super + Escape)" # These first characters are invisible sort keys - local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 200 --height 195 -O alphabetical --style ~/.config/wofi/omarchy-power-menu.css) + local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 500 --height 195 -O alphabetical --style ~/.config/wofi/omarchy-power-menu.css) case "$selection" in *Lock*) hyprlock ;; From 51e97fcc766014f392ff28a5bdd448181827957b Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Mon, 7 Jul 2025 21:18:45 +1000 Subject: [PATCH 3/4] Kill wofi when using the shortcut and power menu is showing --- default/hypr/bindings.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index b2f50d5..4124057 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -24,7 +24,7 @@ bind = SUPER CTRL, comma, exec, makoctl mode -t do-not-disturb && makoctl mode | bind = SUPER, W, killactive, # End active session -bind = SUPER, ESCAPE, exec, hyprlock +bind = SUPER, ESCAPE, exec, pkill wofi 2>/dev/null; hyprlock bind = SUPER SHIFT, ESCAPE, exec, systemctl suspend bind = SUPER ALT, ESCAPE, exit, bind = SUPER CTRL, ESCAPE, exec, reboot From c459e03d390c991d0f49d13483f4dc4c455ef515 Mon Sep 17 00:00:00 2001 From: Noah Penza Date: Mon, 7 Jul 2025 21:25:14 +1000 Subject: [PATCH 4/4] Change power menu css path --- bin/omarchy-power-menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-power-menu b/bin/omarchy-power-menu index a393f8f..fdcb80e 100755 --- a/bin/omarchy-power-menu +++ b/bin/omarchy-power-menu @@ -11,7 +11,7 @@ show_power_menu() { \u2060󰜉 Restart (Ctrl + Super + Escape) 󰐥\u2063 Shutdown (Ctrl + Shift + Super + Escape)" # These first characters are invisible sort keys - local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 500 --height 195 -O alphabetical --style ~/.config/wofi/omarchy-power-menu.css) + local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 500 --height 195 -O alphabetical --style ~/.local/share/omarchy/config/wofi/omarchy-power-menu.css) case "$selection" in *Lock*) hyprlock ;;