mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-03 03:37:36 +00:00
refactor(cli): increase default GAP from 10 to 16
This commit is contained in:
1 parent
5e3b2f607e
commit
32d4fccb2b
3 files changed
+4
-5
No files matched your search
@@ -27,7 +27,7 @@ esac
|
|||||||
FRACTION=0.3
|
FRACTION=0.3
|
||||||
# Matches general:gaps_out so the window lines up with tiled neighbours and
|
# Matches general:gaps_out so the window lines up with tiled neighbours and
|
||||||
# its border stays on screen.
|
# its border stays on screen.
|
||||||
GAP=10
|
GAP=16
|
||||||
|
|
||||||
# Lua dispatcher first, classic name as the pre-lua fallback (same shape as
|
# Lua dispatcher first, classic name as the pre-lua fallback (same shape as
|
||||||
# the other omarchy-* scripts here).
|
# the other omarchy-* scripts here).
|
||||||
|
|||||||
@@ -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,
|
# omarchy-pip). h/j/k/l read clockwise from the bottom left: l bottom-left,
|
||||||
# d top-left, u top-right, r bottom-right.
|
# d top-left, u top-right, r bottom-right.
|
||||||
if [[ $(jq -r '.floating' <<<"$ACTIVE") == true ]]; then
|
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 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" \
|
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(" "))"')
|
'.[] | select(.id == $id) | "\(.x) \(.y) \(((.width / .scale) | floor)) \(((.height / .scale) | floor)) \(.reserved | join(" "))"')
|
||||||
|
|||||||
@@ -12,9 +12,8 @@ set -uo pipefail
|
|||||||
# class to its workspace, so only the launch and the reveal are left here. A
|
# 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
|
# 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
|
# 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
|
# web apps) from piling up duplicates. The scrolling layout gives each
|
||||||
# the master slot to whichever window appears first (a terminal beats an
|
# resident its own column, in the order they appear.
|
||||||
# Electron app); swap them afterwards if the arrangement matters.
|
|
||||||
#
|
#
|
||||||
# HOME_MONITOR is a connector name or an EDID description (the latter, as in
|
# 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).
|
# the workspace rules, survives a different DP connector after re-docking).
|
||||||
|
|||||||
Reference in new issue
Block a user