Notifications settings page#1878
Conversation
6e8afc1 to
c23b9b4
Compare
Closes: * pop-os/cosmic-notifications#97 * pop-os/cosmic-notifications#83 I implemented a settings page for COSMIC Notifications so that it is easier to edit its config. COSMIC Notification already exposes a config to tweak useful options like the maximum time a notification may stay on the screen. Currently, there isn't a nice way to edit this config which can be confusing to end users.
c23b9b4 to
3f5df2e
Compare
|
The screenshot of the new Settings page would be helpful for the UX review. |
|
A lot of suggested settings seem too granular to include in the Settings application. |
|
Would it be better if I move "Maximum notifications" and "Maximum notifications per app" to an advanced drawer but keep the timeout settings on the main Notifications page? Also, I agree that only having those three settings would be a bit too sparse for a settings page, but presumably more options will be added later as COSMIC gains more features. 😁 I'm porting an option from Android/iOS in pop-os/cosmic-notifications#141 which would be a good inclusion to the page if it's merged. A lot of users want an easy way to edit the timeouts (see the attached issues) without having to manually edit the config files. |
|
It would be great if there was a way to adjust which applications have permissions to send notifications through this menu. That is the most important use case for me personally. |
|
@lucasrossell Does this fit your use case?: pop-os/cosmic-notifications#141 Or do you mean something more granular? COSMIC Notifications itself needs support for features like muting notifications or bypassing DND so I can't add those to the settings page yet. I'll try to implement what I can. |
Yes, this is the main purpose of most of the Notifications settings pages in other systems and what I would picture being in Notifications page in COSMIC. I am not sure we can easily implement it right now though which is why I haven't mentioned it. But this is certainly something long-term to look into.
I don't think we'd want to have it even in the advanced drawer. We're really trying to walk the line between having enough essential settings but not too many. The only cases where we go the advanced route is when there is a lot of need for those. I just don't see the maximum notifications filling much of a need at this point. |
|
@maria-komarova I can remove the settings for anchor, max notifications, and max app notifications but leave the timeout settings since users are asking for that. I can change timeout to a slider since that's nicer than what I have now. 😆 I exposed max notifications because the notifications program already supports it. 😁 In other words, I didn't implement that myself. I'll disable it, but I'm positive users will ask for something similar in the future. Three is fairly low default and I already changed it on my personal system. 😆 (I'll comment on the per app notifications thingy on my other PR since it's more relevant there.) |
|
@maria-komarova since there is no other way to configure notification duration, I would consider this PR important |
|
Would it be possible to have the timeout for notifications be infinity? I.e. that they have to be manually dismissed to disappear from your screen? Mac OS calls this the persistent alert style. I am a forgetful person, so when a notification is minimized it might just as well be gone... |
|
@tormeh I checked COSMIC Notification's source code to see if that's already implemented or at least doable. It's not implemented yet but seems easy to implement. I think the only source code changes would be to add a config item for persistent notifications then to ignore the timeout if it's I can try to implement it soon. @vertexodessa Sorry for the hassle. 😅 Unfortunately, most of my Notification patches are currently blocked. I'm willing to fix them up if there's still interest in getting them merged though. |
|
I'm unsure if it's cleaner or messier to implement infinity as just the maximum of whatever numeric type the timeout is stored as. If it's longer than a month I doubt anyone would notice the difference, and you get to reuse the same code path. |

Closes: pop-os/cosmic-notifications#97 pop-os/cosmic-notifications#83
I implemented a settings page for COSMIC Notifications so that it is easier to edit its config. COSMIC Notification already exposes a config to tweak useful options like the maximum time a notification may stay on the screen. Currently, there isn't a nice way to edit this config which can be confusing to end users.