Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] hy3 group window rule #148

Open
Dragoninventor opened this issue Oct 21, 2024 · 0 comments
Open

[Feature Request] hy3 group window rule #148

Dragoninventor opened this issue Oct 21, 2024 · 0 comments

Comments

@Dragoninventor
Copy link

Dragoninventor commented Oct 21, 2024

Could a window rule similar to the base hyprland group window rule (https://wiki.hyprland.org/Configuring/Window-Rules/#group-window-rule-options) be implemented for hy3?

This would allow for targeting windows to be grouped by default with window rules, without requiring you to run a dispatcher on the active window.

For example, these were the window rules I used for automatically starting two applications grouped with tabs in the same workspace before switching to hy3:

windowrulev2 = workspace 4 silent, class:^(app1)$
windowrulev2 = group set, class:^(app1)$

windowrulev2 = workspace 4 silent, class:^(app2)$
windowrulev2 = group set, class:^(app2)$

or

exec-once = [ workspace 4 silent; group set ] app1
exec-once = [ workspace 4 silent; group set ] app2

The group rule was applied to both windows in this example, so that if one app opened before the other they'd still both be grouped. In hy3's case, the group rule would only need to be applied to one window, since adjacent ones can collapse into it.

This could also allow for defining specific directional layouts for apps launched automatically in a workspace. You could apply the hy3 group window rule equivalent for hy3:makegroup <h | v> on one application, then launch the next app after it to open it in the group direction specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant