summaryrefslogtreecommitdiffstats
path: root/roles/waybar/files/scripts
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-02-22 23:31:46 +0100
committerAhmed AbdelHalim <[email protected]>2026-02-22 23:37:08 +0100
commit0b1ab11c41eebea2ba88c8c411abef9b4deead31 (patch)
tree2f61023fce1c0ab1a707f97845373b167a1169c0 /roles/waybar/files/scripts
parentdc6121942bd6e070cc30f61678877acc5b720c6e (diff)
Configure power menu using tofi
Since it was almost impossible to change the spacing between the gum choose items, I used tofi instead, which is already themed and the only downside to it, is that it allows typing input on the menu which isn't my favorite but it's also not bad at all
Diffstat (limited to 'roles/waybar/files/scripts')
-rwxr-xr-xroles/waybar/files/scripts/power-menu8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/waybar/files/scripts/power-menu b/roles/waybar/files/scripts/power-menu
index d9be8315..9fb4b3cd 100755
--- a/roles/waybar/files/scripts/power-menu
+++ b/roles/waybar/files/scripts/power-menu
@@ -1,3 +1,9 @@
#!/bin/bash
-exec setsid uwsm-app -- /etc/hypr/scripts/power.sh
+# Launch a specific class that is used to dim the background of the power menu
+# This is done via a workaround window rules by creating a window size 1x1 behind the tofi menu
+# and using this fake window to stay focused and dim around it
+# This looks nicer than fiddling with the tofi styling in power.sh
+exec setsid uwsm-app -- alacritty --class="work.kartoffln.power-menu" -e "/etc/hypr/scripts/power.sh"
+# if you prefer you can use the following code, and update the tofi styling inside the script
+# exec setsid uwsm-app -- /etc/hypr/scripts/power.sh