Do not add new window to group, if group is the only active window #938
JoseConseco
started this conversation in
General
Replies: 2 comments 1 reply
-
No way to do that atm, unless you write a script. Then it might work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
ok, I kind of got it working with: #!/bin/sh
function handle {
# echo "Handling $1"
if [[ ${1:0:10} == "openwindow" ]]; then
echo "Opening window"
echo "Handling $1"
hyprctl dispatch togglegroup none
hyprctl dispatch cyclenext none
# sleep 0.1
hyprctl dispatch togglegroup none
hyprctl dispatch cyclenext none
fi
if [[ ${1:0:12} == "activewindow" ]]; then
echo "active window"
echo "Handling $1"
# hyprctl dispatch cyclenext
fi
}
socat - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do handle $line; done
How to get info, - if previous window is group (before new window is added) ? I could disable then above code for non groups. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
Is there way to prevent auto adding of new opened app to group - if it is the only active window on monitor?
I can see all works as expected, if we have two windows [grouped][single-active], then opening new app wont group it obviously (group was not active).
Beta Was this translation helpful? Give feedback.
All reactions