mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(cli): add home workspace option and lower default gap to 10
This commit is contained in:
1 parent
d8f5d10f05
commit
0c664cd298
3 files changed
+11
-6
No files matched your search
@@ -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(" "))"')
|
||||
|
||||
Reference in new issue
Block a user