From 32d4fccb2b047f5dba327ca782ec7e6178f82a8c Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 13 Oct 2026 18:38:03 -0400 Subject: [PATCH] refactor(cli): increase default GAP from 10 to 16 --- dot_local/bin/executable_omarchy-pip | 2 +- dot_local/bin/executable_omarchy-smart-move | 2 +- dot_local/bin/executable_omarchy-toggle-scratch | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dot_local/bin/executable_omarchy-pip b/dot_local/bin/executable_omarchy-pip index 00b7ca1..1f1d2f8 100755 --- a/dot_local/bin/executable_omarchy-pip +++ b/dot_local/bin/executable_omarchy-pip @@ -27,7 +27,7 @@ esac FRACTION=0.3 # Matches general:gaps_out so the window lines up with tiled neighbours and # its border stays on screen. -GAP=10 +GAP=16 # Lua dispatcher first, classic name as the pre-lua fallback (same shape as # the other omarchy-* scripts here). diff --git a/dot_local/bin/executable_omarchy-smart-move b/dot_local/bin/executable_omarchy-smart-move index 32031b8..171d9e6 100755 --- a/dot_local/bin/executable_omarchy-smart-move +++ b/dot_local/bin/executable_omarchy-smart-move @@ -37,7 +37,7 @@ GROUPED=$(jq -r '(.grouped // []) | length' <<<"$ACTIVE") # omarchy-pip). h/j/k/l read clockwise from the bottom left: l bottom-left, # d top-left, u top-right, r bottom-right. if [[ $(jq -r '.floating' <<<"$ACTIVE") == true ]]; then - GAP=10 + GAP=16 read -r WIN_W WIN_H MON_ID < <(jq -r '"\(.size[0]) \(.size[1]) \(.monitor)"' <<<"$ACTIVE") read -r MON_X MON_Y MON_W MON_H RES_L RES_T RES_R RES_B < <(hyprctl monitors -j | jq -r --argjson id "$MON_ID" \ '.[] | select(.id == $id) | "\(.x) \(.y) \(((.width / .scale) | floor)) \(((.height / .scale) | floor)) \(.reserved | join(" "))"') diff --git a/dot_local/bin/executable_omarchy-toggle-scratch b/dot_local/bin/executable_omarchy-toggle-scratch index ae95d5c..9c8c730 100755 --- a/dot_local/bin/executable_omarchy-toggle-scratch +++ b/dot_local/bin/executable_omarchy-toggle-scratch @@ -12,9 +12,8 @@ set -uo pipefail # class to its workspace, so only the launch and the reveal are left here. A # resident is launched only when no window on the workspace matches it, which # is what keeps a launcher that always opens a fresh window (the Chromium -# web apps) from piling up duplicates. On first start the master layout gives -# the master slot to whichever window appears first (a terminal beats an -# Electron app); swap them afterwards if the arrangement matters. +# web apps) from piling up duplicates. The scrolling layout gives each +# resident its own column, in the order they appear. # # HOME_MONITOR is a connector name or an EDID description (the latter, as in # the workspace rules, survives a different DP connector after re-docking).