Skip to content

Notifications settings page#1878

Open
joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:notification-settings
Open

Notifications settings page#1878
joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:notification-settings

Conversation

@joshuamegnauth54
Copy link
Copy Markdown
Contributor

@joshuamegnauth54 joshuamegnauth54 commented Feb 26, 2026

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.


  • I have disclosed use of any AI generated code in my commit messages.
    • If you are using an LLM, and do not fully understand the changes it is making to the code base, do not create a PR.
    • In our experience, AI generated code often results in overly complex code that lacks enough context for a proper fix or feature inclusion. This results in considerably longer code reviews. Due to this, AI authored or partially authored PRs may be closed without comment.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

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.
@joshuamegnauth54 joshuamegnauth54 marked this pull request as ready for review February 27, 2026 19:34
@jacobgkau jacobgkau requested review from a team February 27, 2026 23:17
@maria-komarova
Copy link
Copy Markdown
Contributor

The screenshot of the new Settings page would be helpful for the UX review.

@joshuamegnauth54
Copy link
Copy Markdown
Contributor Author

cosmic_settings_01

Screenshot from my (almost) stock test VM.

@maria-komarova
Copy link
Copy Markdown
Contributor

A lot of suggested settings seem too granular to include in the Settings application.
The plan for the positions of the notifications was to tie it to the placement of the Notifications center applet. It's not currently behaving like this but this is still a plan.
The only setting out of the settings here that we'd be ready to expose in the UI would be the time the notifications shows on screen with the slider. But having an entire Notifications page for a single setting does not seem like a good idea.

@joshuamegnauth54
Copy link
Copy Markdown
Contributor Author

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.

@lucasrossell
Copy link
Copy Markdown

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.

@joshuamegnauth54
Copy link
Copy Markdown
Contributor Author

@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.

@maria-komarova
Copy link
Copy Markdown
Contributor

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.

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.

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?

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.

@joshuamegnauth54
Copy link
Copy Markdown
Contributor Author

joshuamegnauth54 commented Mar 11, 2026

@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.)

@vertexodessa
Copy link
Copy Markdown

@maria-komarova since there is no other way to configure notification duration, I would consider this PR important

@tormeh
Copy link
Copy Markdown

tormeh commented May 29, 2026

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...

@joshuamegnauth54
Copy link
Copy Markdown
Contributor Author

@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 true.

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.

@tormeh
Copy link
Copy Markdown

tormeh commented May 29, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cosmic ignores --expire-time when passed to notify-send

5 participants