-
Notifications
You must be signed in to change notification settings - Fork 100
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
Move tiling exceptions to configuration file #726
Conversation
Sorry, but we probably won't do this as one single config file. Reason being that we want to ship the default rules and also be able to update them. So we likely want a new config file for rules added by users and default rules to be explicitly disabled. Externalizing the default rules into a separate config file still makes sense, given we want to allow distros overwriting them. I don't have the time to do a thorough review on your work now and will try to do so next week. In any case thanks for working on this! |
310ac52
to
cee0ee3
Compare
@Drakulix is there something I can do for this at this time? |
Yes, so looking at this further, what needs to be done to move this PR along is split the config file into two. One for the defaults and one for user-overrides (so either disabling existing rules from the defaults file or adding additional ones), because we want distros to provide the former and be able to update them without disrupting user configuration. For this you can take inspiration from our shortcuts-config, which does the same (but is located in the That also adds a new config namespace ( Given these should be configurable from The defaults file could still be installed by cosmic-comp, like the shortcuts file. I understand, that this is a far bigger tasks, than you probably imagined opening this PR, so please don't see this as a demand. If you don't feel like working on this, we will eventually implement said feature. That said your effort and contribution is very appreciated. |
Thanks for the response. Will try to find some time to look into all of this. It would be nice to finish what was started. |
This is now updated, needs the PR in cosmic-settings-daemon to be merged first for the checks to pass. |
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.
This looks great!
I think there is just one thing missing, it doesn't appear to reload the config file at runtime. To do that you need to add some code to watch the config file, re-assemble the exceptions again and update the data in Shell
.
You can see the code doing that for the shortcuts just below your new code in Config::load
(config.rs).
Got that working now. |
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.
Almost, just a small nitpick. Thanks for working on this :)
Co-authored-by: Victoria Brekenfeld <[email protected]>
pop-os/cosmic-settings-daemon#50 merged, this needs a |
Did the cargo update, some of the version moves in the diff looked confusing, such as libloading 0.8.5 -> 0.7.4. Pushed it up in case it is correct. |
03a039a
to
a7970ce
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.
Thanks again for working on this!
This moves out the hard coded tiling exceptions into a new separate config file under CosmicComp