Skip to content

notifications: add block, mute and clear header buttons - #4427

Open
faryvojnik wants to merge 3 commits into
duxlabs-dev:masterfrom
faryvojnik:pr/notification-quick-actions
Open

faryvojnik wants to merge 3 commits into
duxlabs-dev:masterfrom
faryvojnik:pr/notification-quick-actions

Conversation

@faryvojnik

@faryvojnik faryvojnik commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Replaces the text "Clear" / "Dismiss" button with a "⋯" menu in the card header (also opened by right-click): Mute popups (1 hour / 4 hours / forever / custom), Block app, Clear from history, Allow during Do Not Disturb, Set notification rules, Copy. X closes and keeps the notification in history.

Today "Clear" (popup) also deletes from history while "Dismiss" (center) does not, and blocking an app needs the rule editor.

  • Each menu action adds its own rule and undoing it removes only that rule; manual rules are untouched.
  • Notification rules settings: new "Blocked apps" card; the ignore action is shown as "Block".
  • Popups without action buttons keep the same height.

Tested on NixOS/niri; make test-qml passes.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

None

Screenshots / video

Before: text Clear / Dismiss button. After: "⋯" menu in a popup, and a notification center card.

Before After
before after

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

@github-actions github-actions Bot added feature ui Quickshell UI under quickshell/ labels Nov 26, 2026
@faryvojnik
faryvojnik force-pushed the pr/notification-quick-actions branch from 3aa49e2 to 7fdd888 Compare November 26, 2026 10:43
Replace the text Clear/Dismiss button with header icon buttons:
Block (two-click), Mute (duration menu, DND allow), Clear and Close.
Each header action writes its own rule; the ignore action is shown
as Block, with Blocked apps next to Muted apps in settings.
@georgestafilidis

Copy link
Copy Markdown
Contributor

I dont really like how this looks tbh

@apollo79

Copy link
Copy Markdown
Member

Same for me, don't favor the looks here. These aren't primary actions at all, so they shouldn't all be here at the same priority.

Also, I would very much appreciate you writing PR descriptions yourself as the contribution guidelines of dux shell require. It makes conversations feel a lot more meaningful and AI descriptions also are too detailed most of the time.

@faryvojnik

Copy link
Copy Markdown
Contributor Author

Thanks, fair point, the header got too busy.

Why I started this: "Clear" (popup) and "Dismiss" (center) look like the same
button but behave differently (Clear also removes from history), and blocking
an app is only possible in the rule editor.

Proposal, similar to Windows/macOS: on hover the header shows only "⋯" and X.
"⋯" and right-click open one menu: Mute popups (1h / 4h / forever), Block app,
Clear from history, Allow during DND, Notification rules, Copy.
X closes and keeps the notification in history.

Would that work for you?

@faryvojnik

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I reworked it: the header now only has "⋯" and X, and everything else is in one menu (also on right-click), including mute for 1h / 4h / forever / a custom time. Description and screenshots are updated. Does this look better?

This branch has not been deployed

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

Labels

feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants