Add multiple pause levels#1193
Conversation
|
Your suggestion for adding a pause level seems like a good approach. I would be careful with adding too many pause levels, as it could make it overwhelming for people. I'd suggest adding a maximum of 10 pause levels, since I cannot think of a situation that requires more pause levels. The limit could always be raised later. |
|
Your approach is good and the implementation seems mostly good. Could take a look at the build errors, my comments and the documentation? |
|
Thanks for the review. Added several commits which should address things. |
|
Hi there! I'm runing dunst compiled from this branch, with two simple If I could make a small suggestion, from the example Thanks again for your work on this! ❤️ |
fwsmit
left a comment
There was a problem hiding this comment.
Thanks for your improvements! The code looks good, but there are a few small documentation and naming improvements needed before this can be merged. Could you add an entry for override_pause_level in the man page as well?
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## master #1193 +/- ##
==========================================
+ Coverage 66.03% 66.26% +0.23%
==========================================
Files 46 46
Lines 7595 7656 +61
==========================================
+ Hits 5015 5073 +58
- Misses 2580 2583 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
|
Thank you for this new feature. I will merge this as soon as the tests pass |
|
Wow, thanks a lot for implementing this! I wanted this for a long time, just never managed to find the time to do it myself. Tested it now, seems to work well, just needs a little fix for a bashism in dunstctl: #1230 |
…-timer This needs dunst-project/dunst#1193 which was merged an hour ago.
|
Cannot get this to work properly have this in my when I try to set pause level to 100 messages still go through with expected red background
|
|
Huh. If you remove override pause level, do messages still go through? |
|
yeah, tried various combinations and still get notifications bypassing |
|
Which version do you have? This was just released in Dunst v10.0. |
|
I installed it from |
|
Are you setting override pause level to a higher value somewhere else (default configuration)? I'm actually not sure what would be a good way to debug this. Maybe we should have added some more LOG_D statements for this? |
This fixes #865, specifically by introducing multiple pause levels (as outlined in #865 (comment)).
Instead of pause being a toggle, it is now a number and notification rules can set
override_pause_levelwhich determines maximum pause level at which the notification is displayed.Old
is-pausedandset-pausedcommands are deprecated, but they still function to maintain backwards compatibility (set-paused truesets paused level to 100, which is an arbitrary number, we could pick any other if desired).PR is not finished yet, I still need to update tests, documentation, scripts etc. but I only edited the core for now to get feedback on my approach. Does this look like something we would want in dunst?