-
Notifications
You must be signed in to change notification settings - Fork 87
add module for configuring window rules #199
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
Conversation
f4887aa
to
5225e42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did test the example config, and after running qdbus org.kde.KWin /KWin reconfigure
manually it did work well, but this had to be done manually, it did not happen automatically. With that said though, we could just drop the qdbus reloading part as the rest of plasma-manager
a.t.m. needs fully logging out/in for things to work. We can worry about this in a later PR (if plasma provides the necessary tools for this to work smoothly across for most/all modules).
Otherwise it looks good, though if you could format with nixpkgs-fmt
that would be great. Nice work on this :)
I also see the checks fail, but that probably isn't due to this. I'll see if this is caused by something else. |
While using this for a while I ran into an issue where if the order of rules change or rules get removed, the news set of rules gets merged "randomly" with the old set of rules. Resulting in various unexpected window rules being create. I've solved this locally by just setting Given that this currently already behaves as overwriting all "ui defined" window rules (because it has to set the list of configured rules). It might make sense to have it always delete An alternative would be to extend the files module to allow specifying individual configuration blocks to be overwritten instead of merged. |
I see. I'll try to improve the interface so that we could enable deletion of some files even without |
OK so it should now be easy to make sure that Fixing this and removing the qdbus part (I have never gotten much luck using |
done |
03356f9
to
23c8f24
Compare
I'm happy with this now. Thanks for this, this is really cool :) |
Allow configuring kwin window rules through plasma-manager.
For future work it would be nice to have the
apply
options be a fully typed submodule with all the available options and their correct type instead of the current, more freeform,attrsOf
to remove some of the guesswork from writing configurations.But I was to lazy to do that for now.