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

Apply windowrule to specific window #4648

Closed
Piroro-hs opened this issue Feb 8, 2024 · 13 comments
Closed

Apply windowrule to specific window #4648

Piroro-hs opened this issue Feb 8, 2024 · 13 comments
Labels
enhancement New feature or request stale Not much going on

Comments

@Piroro-hs
Copy link
Contributor

Piroro-hs commented Feb 8, 2024

Description

Exec with window rules is not always workingcan not handle some usecases. It would be convenient if something like "apply windowrule dispatcher" or hyprctl apply rule window and someway of undone is available.

My specific usecase is to toggle nofocus rule.

@Piroro-hs Piroro-hs added the enhancement New feature or request label Feb 8, 2024
@fufexan
Copy link
Member

fufexan commented Feb 8, 2024

Are you sure your exec comes after the windowrule in the config file?

@Piroro-hs
Copy link
Contributor Author

Piroro-hs commented Feb 9, 2024

Sorry for ambiguous comment. exec rule itself is working as expected. It does not handle my usecase (dynamically apply and clear windowrule to existent window) .

@vaxerski
Copy link
Member

vaxerski commented Feb 9, 2024

elaborate?

@phonetic112
Copy link
Contributor

what about hyprctl keyword "windowrulev2 [rule], [window]"

@Piroro-hs
Copy link
Contributor Author

Piroro-hs commented Feb 10, 2024

what about hyprctl keyword "windowrulev2 [rule], [window]"

windowrulev2 does not support specifying window idaddress as its dynamic.

@vaxerski
Copy link
Member

what's a window id? Never heard of such a thing.

@Piroro-hs
Copy link
Contributor Author

Ah, I mean, address

@vaxerski
Copy link
Member

it's dynamic and always changes, though.

@Piroro-hs
Copy link
Contributor Author

Does address change during window is open?
Then pid is ok?
hyprctl apply [rule] [pid]

@vaxerski
Copy link
Member

no, once it's open it doesn't...

have you checked hyprctl setprop?

@Piroro-hs
Copy link
Contributor Author

Yes but setprop does not support nofocus...

@vaxerski
Copy link
Member

ok I finally understand what you want from me, tho xD

@vaxerski vaxerski added the stale Not much going on label Apr 10, 2024
@MightyPlaza
Copy link
Contributor

Yes but setprop does not support nofocus...

it does now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale Not much going on
Projects
None yet
Development

No branches or pull requests

5 participants