-
I was interested in a feature like the one in issue #1265, so I was wondering whether it's possible to automate that using Is there a way to get the master window using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can do a surprising amount with hyprctl clients -j | jq "[.[] | select (.workspace.id == $(hyprctl activewindow -j | jq .workspace.id))] | min_by(.at[0]) | .address" You might have to do some more filtering to handle floating/pseudotiled windows, or change the |
Beta Was this translation helpful? Give feedback.
You can do a surprising amount with
hyprctl -j
andjq
, for example, you can write something like this:You might have to do some more filtering to handle floating/pseudotiled windows, or change the
min_by(.at[0])
to fit your master position (max_by
will return the rightmost, and[1]
will return a y-position), or some porting if you aren't usingfish
, but this should be a decent jumping off point.