diff --git a/bin/omarchy-cmd-workspace-toggle-gaps b/bin/omarchy-cmd-workspace-toggle-gaps new file mode 100755 index 00000000..4304758a --- /dev/null +++ b/bin/omarchy-cmd-workspace-toggle-gaps @@ -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 diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index ed44654e..28d00771 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -12,6 +12,7 @@ bindd = SUPER SHIFT, SPACE, Toggle top bar, exec, omarchy-toggle-waybar bindd = SUPER CTRL, SPACE, Next background in theme, exec, omarchy-theme-bg-next bindd = SUPER SHIFT CTRL, SPACE, Pick new theme, exec, omarchy-menu theme bindd = SUPER, BACKSPACE, Toggle window transparency, exec, hyprctl dispatch setprop "address:$(hyprctl activewindow -j | jq -r '.address')" opaque toggle +bindd = SUPER SHIFT, BACKSPACE, Toggle workspace gaps, exec, omarchy-cmd-workspace-toggle-gaps # Notifications bindd = SUPER, COMMA, Dismiss last notification, exec, makoctl dismiss