-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
dunst: improve configurability #2113
Conversation
Thank you for your reviews! The added complexity likely seems unjustified at a glance, so I think this PR warrants a bit more explanation of my use case. The two new options provide me the ability to programmatically concatenate an immutable general configuration (generated by the home-manager module) with a mutable color configuration (generated by a utility like wpgtk). This is trivial for programs with configuration formats that allow importing external configuration files (e.g., Alacritty’s My configuration looks something like this:
When wpgtk is called, it generates the color configuration file and runs the script that ultimately produces the combined configuration file. If all of this sounds obnoxious, you are not wrong. However, I have been using this solution without issue for a number of months and imagine it would be appreciated by the ricing community. |
@ctem can't you just extend |
@ncfavier Thank you for your suggestion! Unless I'm misunderstanding, this would cause the mutable configuration file to be evaluated, resulting in an immutable concatenated rc file. This implies that a rebuild would be required every time the colors change, which for pywal/wpgtk users means that they would have to rebuild every time they wanted to change their wallpaper. By contrast, this PR enables the user to specify a mutable concatenated rc file such that regenerating the color scheme triggers an immediate update to the UI. |
Indeed. I'm fine with the I would actually be more in favour of a This seems compatible with your workflow and doesn't add too many options whose usefulness is hard to justify. |
That’s a nice idea and minimizes the impact on this module. I agree that the PR currently offers more customizability than is needed. I was initially concerned that writing the immutable config to the default path would be misleading if the service was reading a different file, but shipping the new I’ll revise the implementation based on this and force push. |
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.
LGTM!
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.
TBH, I'm not convinced of the utility of this additional option. Doesn't live reloading still work with the existing module after you run home-manager switch
. Also, are there other examples of modules doing this?
@sumnerevans Thank you for your review!
As previously discussed, building the configuration (e.g., with
As I previously explained, most applicable programs do not require such a workaround because their configuration formats are flexible enough to pull in additional files. Indeed, it is my hope that there are not many other examples of this! |
Live reloading is done by this module on activation, using an As far as I understand, this is mostly an issue of timing: live reloading with wpgtk is near instant, whereas live reloading with home-manager requires evaluating, building and activating the whole configuration. |
This is correct. @ncfavier Thank you for clarifying; it appears I misinterpreted @sumnerevans’ use of the term. |
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.
The change is simple and costs us nothing to maintain.
@berbiche Thank you for returning to this PR. I have updated with your changes. |
This is my first contribution to this repo, so I'm not entirely sure what sort of turnaround to expect. In this situation, is it appropriate to request reviews from other maintainers, or should I continue to await further action? Thanks! |
@sumnerevans Thank you kindly for your prompt assistance. As @berbiche is unresponsive, is there perhaps another fine maintainer willing to give this small PR attention? |
Sorry, I am currently in my finals week in uni. |
@berbiche No worries. Thank you and best of luck with your finals! |
Description
This PR adds options to provide workarounds for shortcomings in dunst’s configuration format. All defaults remain unchanged.
Checklist
Change is backwards compatible.
Code formatted with
./format
.Code tested through
nix-shell --pure tests -A run.all
.Test cases updated/added. See example.
Commit messages are formatted like