mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add binding to toggle workspace gaps on SUPER + SHIFT + BACKSPACE
This commit is contained in:
10
bin/omarchy-cmd-workspace-toggle-gaps
Executable file
10
bin/omarchy-cmd-workspace-toggle-gaps
Executable 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
|
||||
Reference in New Issue
Block a user