Skip to content

Conversation

@sqrew
Copy link

@sqrew sqrew commented Oct 26, 2025

This adds cross-platform urgency support by implementing urgency levels for Windows notifications, which were previously only available on Linux/BSD (XDG) systems.

Changes:

  • Add urgency field to Windows Notification struct
  • Map Urgency levels to Windows toast scenarios:
    • Low/Normal → Default scenario (standard behavior)
    • Critical → Reminder scenario (stays on screen until dismissed)
  • Update urgency() method to work on Windows
  • Update compatibility matrix to show Windows urgency support
  • Update urgency example to work on both Windows and Linux/BSD

The Critical urgency mapping to Reminder scenario aligns with the XDG specification's intent that critical notifications should not timeout automatically.

This adds cross-platform urgency support by implementing urgency levels
for Windows notifications, which were previously only available on
Linux/BSD (XDG) systems.

Changes:
- Add urgency field to Windows Notification struct
- Map Urgency levels to Windows toast scenarios:
  - Low/Normal → Default scenario (standard behavior)
  - Critical → Reminder scenario (stays on screen until dismissed)
- Update urgency() method to work on Windows
- Update compatibility matrix to show Windows urgency support
- Update urgency example to work on both Windows and Linux/BSD

The Critical urgency mapping to Reminder scenario aligns with the XDG
specification's intent that critical notifications should not timeout
automatically.
@hoodie
Copy link
Owner

hoodie commented Nov 4, 2025

awesome, thanks for the input. unfortunately it does not build yet. would you allow me to push on your fork?

@sqrew
Copy link
Author

sqrew commented Nov 8, 2025

yes, absolutely, thank you

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.

2 participants