diff --git a/dot_local/bin/executable_omarchy-pip b/dot_local/bin/executable_omarchy-pip index 1f1d2f8..00b7ca1 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=16 +GAP=10 # 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 171d9e6..32031b8 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=16 + GAP=10 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 9c8c730..01ac75b 100755 --- a/dot_local/bin/executable_omarchy-toggle-scratch +++ b/dot_local/bin/executable_omarchy-toggle-scratch @@ -1,10 +1,10 @@ #!/bin/bash -# omarchy:summary=Toggle a scratch workspace (scratchpad, claude, fastmail, beeper), starting its resident apps when any is missing. +# omarchy:summary=Toggle a scratch workspace (scratchpad, claude, fastmail, beeper, home), starting its resident apps when any is missing. set -uo pipefail -# Usage: omarchy-toggle-scratch [scratchpad|claude|fastmail|beeper] +# Usage: omarchy-toggle-scratch [scratchpad|claude|fastmail|beeper|home] # # Each profile is a special workspace, the monitor it opens on, and its # resident apps (class pattern -> launch command; the pattern is an anchored @@ -39,8 +39,12 @@ beeper) NAME="beeper" MEMBERS=("Beeper|gtk-launch beeper") ;; +home) + NAME="home" + MEMBERS=("brave-home\.google\.com__.*|gtk-launch 'Google Home'") + ;; *) - echo "usage: ${0##*/} [scratchpad|claude|fastmail|beeper]" >&2 + echo "usage: ${0##*/} [scratchpad|claude|fastmail|beeper|home]" >&2 exit 2 ;; esac @@ -99,7 +103,8 @@ launched=0 for member in "${MEMBERS[@]}"; do pattern=${member%%|*} grep -qE "^(${pattern})$" <<<"$present" && continue - setsid uwsm-app -- ${member#*|} >/dev/null 2>&1 & + # eval so a launch command can quote a desktop id with spaces. + eval "setsid uwsm-app -- ${member#*|}" >/dev/null 2>&1 & launched=1 done