-
Notifications
You must be signed in to change notification settings - Fork 348
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
Deprecating/removing per-urgency command line flags #328
Comments
Coming from #357 these flags are sed to load current configurations, like the current colors. This helps blending the notification with the current colourscheme for example. Will there be an alternative way to do this when those flags get removed? |
@nhatzHK The configuration will be done via rules. Rules are far more powerful than these per urgency flags. Only "downside" is, that these rules cannot get set via command line. |
Which we can consider to implement down the road if we can come up with an acceptable interface for it. |
I'd like to propose shell commands invokation in config files as an alternative, as I did there.
|
@tsipinakis If we want to deprecate the urgency settings and make the users aware to translate these configuration blocks into rules, we should actually start warning the users now. No matter if we remove it in the next release or somewhat later. |
I think you misunderstood the intent of this issue, the urgency-specific command line flags will be removed but the urgency sections will remain. I am talking about an internal refactoring of how we handle urgency i.e. instead of specifically loading the urgency sections on their own instead parse them as rules and add an implicit |
Well, this makes no sense to me. Either we should drop them (and translate the previous It makes no sense to me, translating these categories separately to rules and processing it like rules, but declaring it like a setting. Rules are easy to understand, as these are processed in sequence, so anyone can understand how these are applied. When you go on and translate these to rules by default (not just for backwards comp), you won't be able to change the sequence. Also the main point: Why do you want to remove the command line flags, but not the ini categories? In terms of consistency, I don't understand this. |
I found this GHI though the hosted documentation. I wanted to provide my input. I rely on the command line flags so that I can set colors via pywall with out having to have the entire dunstrc file as a pywal template. In my xprofile I start a wrapper script that sources the pywal colors and supplies the current colors as command line argument to dunst. This allows me to keep my dunstrc file with all my other dotfiles, while having colors come from a single place. If there are no command line replacements when the existing ones are depreciated then please consider allowing an |
What's wrong with that? I believe they ship their own dunst template.
Your dunst template will be in ~/.config/wal/templates/, so that's with your other configs.
If that works for you that's fine too. I recently suggested this feature, #796 . I will probably implement this before the command line options get deprecated. Take a look at that and let me know if this would fix your issue |
They do not ship their own template. Until recently I used this approach.
While that is technically correct, if one uses symlinks to place config files in
Presuming that the Thank you for your time in discussing this issue with me 🙂 |
Understandable. You could still do it like this: keep your template in
Yeah, the include directive would probably implement it with wordexp (see wordexp(3)). This expands it like a shell would do it. Envirorment variables, ~, and regex would work as expected. |
Fantastic! I've subscribed to #796 so I know when this work is completed. Thank you! |
Closing, as these commands are now deprecated. Support for drop-in config files is being worked on in #997. |
One of the changes I have been looking into in the long term is integrating urgency with rules. In the simplest form, having the
urgency_{low,normal,critical}
sections imply a match on their respective urgencies without having a separate concept of urgency within the code.We currently have command line flags that allow the customization the attributes that can be set in an urgency section:
-lb,nb,cb
,-lf/nf/cf/
,-lto/nto/cto
,-li/ni/ci
and-lfr/nfr/cfr
for the background, foreground, timeout, icon and frame colour of low, normal and critical notifications respectively.But by implementing the change mentioned above this means that 1) everything that can be set via rules can now also be set in urgency sections, so this list becomes incomplete and that 2) re-implementing these flags with the rule system adds unnecessary noise to the code.
My opinion is that these flags are redundant and overly specific since by the point that these flags are needed to be used it is probably simpler to create a second config file and use that via the
-config
flag.Is anyone relying on these flags for anything? If so what's the use case?
The text was updated successfully, but these errors were encountered: