Add binding to toggle workspace gaps on SUPER + SHIFT + BACKSPACE

This commit is contained in:
David Heinemeier Hansson committed 2025-10-21 16:58:33 -07:00
1 parent 54bcc68490
commit e2b56720ac
2 files changed
+11

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
workspace_id=$(hyprctl activeworkspace -j | jq -r .id)
gaps=$(hyprctl workspacerules -j | jq -r ".[] | select(.workspaceString==\"$workspace_id\") | .gapsOut[0] // 0")
if [[ $gaps == "0" ]]; then
hyprctl keyword "workspace $workspace_id, gapsout:10, gapsin:5, border:true"
else \
hyprctl keyword "workspace $workspace_id, gapsout:0, gapsin:0, border:false"
fi