-
Notifications
You must be signed in to change notification settings - Fork 351
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
Add fullscreen as a global option #644
Comments
That's a good idea, there should be a default value for these in the global section. For now to make your workaround shorter you can use a single rule with no match clause:
Edit: Mind the interaction with other rules, they are applied sequentially so it should be the first one modifying |
Didn't know that worked! Thanks for the short version.
|
Please not. Having rules is the best thing we have. Having "global" configuration options just introduce more complexity while being less flexible. The rules cover every possible configuration case perfectly. It's just not reallly documented that "order makes a difference". |
Interesting that you see it this way. In my mind rules are all about overriding a certain attribute for a specific group, but sometimes like here one wants to change the default value of everything. The goto would be a section at the top like this:
Given that a lot of these, |
I thought our work was previously directed towards rules. We wanted to improve rules and even want to deprecate such global settings (see #328). A rule without a matcher is effectively a global setting. But in code, it's less complex. The only point, we have to communicate in the docs: Order makes a difference there. |
Indeed but the issue you link is about the What I'm trying to say is that whatever the state we're trying to move towards, from the user perspective it's currently inconsistent. (why is
That's true this is indeed missing and should be documented. |
Indeed.
Just because I didn't implement it in my PR. 😝 And I think the actual way to go, is simply deprecating Just see the following code. Do you know how it behaves? After about half a year abstinent, I still know, I've changed it, but I don't know my intention at all. Lines 627 to 631 in 6c4eeda
The only thing I'm sure about: We have to write it this way, because we have to respect the default and the global settings. Implementing the same with a rule would save 10 settings queries. |
This commit tries to make the setttings more consistent by implementing the settings as rules everywhere where it's possible. This means the rule code from settings.c can be removed and everything is defined in settings_data.h. Rules are now also allowed in the global and urgency sections. This means dunst-project#644 is now fixed. The special sections are implemented as rules by giving them implied filters. The global sections has no filters and the urgency sections only have filters of their respective urgency. To avoid confusion, no other filters are allowed in these sections. Fixes dunst-project#644
This commit tries to make the setttings more consistent by implementing the settings as rules everywhere where it's possible. This means the rule code from settings.c can be removed and everything is defined in settings_data.h. Rules are now also allowed in the global and urgency sections. This means dunst-project#644 is now fixed. The special sections are implemented as rules by giving them implied filters. The global sections has no filters and the urgency sections only have filters of their respective urgency. To avoid confusion, no other filters are allowed in these sections. Fixes dunst-project#644
This commit tries to make the setttings more consistent by implementing the settings as rules everywhere where it's possible. This means the rule code from settings.c can be removed and everything is defined in settings_data.h. Rules are now also allowed in the global and urgency sections. This means dunst-project#644 is now fixed. The special sections are implemented as rules by giving them implied filters. The global sections has no filters and the urgency sections only have filters of their respective urgency. To avoid confusion, no other filters are allowed in these sections. Fixes dunst-project#644
This commit tries to make the setttings more consistent by implementing the settings as rules everywhere where it's possible. This means the rule code from settings.c can be removed and everything is defined in settings_data.h. Rules are now also allowed in the global and urgency sections. This means dunst-project#644 is now fixed. The special sections are implemented as rules by giving them implied filters. The global sections has no filters and the urgency sections only have filters of their respective urgency. To avoid confusion, no other filters are allowed in these sections. Fixes dunst-project#644
Currently it is possible to change the fullscreen behaviour through rules, but there is no way to change the global behaviour. I am currently using this to use "pushback" for all notifications:
it would be nicer to just have a single line in [global]:
The text was updated successfully, but these errors were encountered: