Give hyprland commands their own namespace

This commit is contained in:
David Heinemeier Hansson
2025-10-21 17:06:02 -07:00
parent e2b56720ac
commit e9c40445dd
5 changed files with 3 additions and 3 deletions

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