Skip to content

Add status indicator cluster for waybar - #570

Merged
dhh merged 12 commits into
omacom:devfrom
alansikora:add-notification-status-indicator
Aug 23, 2025
Merged

dhh merged 12 commits into
omacom:devfrom
alansikora:add-notification-status-indicator

Conversation

@alansikora

@alansikora alansikora commented Aug 8, 2025 •

Copy link
Copy Markdown
Contributor

Add Status Indicator Cluster for Waybar

This PR adds a new status indicator system to waybar that provides visual feedback about various system states.

screenshot-2025-08-11_13-15-16 screenshot-2025-08-11_13-15-35

New Functionality

Adds a group of status indicators that appear in the waybar when certain system conditions are active:

  • Do Not Disturb - shows when mako notifications are silenced
  • Night Light - shows when hyprsunset is running with warm temperature (< 6000K)
  • Screen Recording - shows when wl-screenrec, wf-recorder, obs, or ffmpeg screen capture is active
  • Idle Lock Disabled - shows when hypridle daemon is not running

Indicators only appear when their state is active. When no states are active, no indicators are shown.

Files Added

Scripts:

  • bin/omarchy-status-daemon - Background daemon for efficient monitoring
  • bin/omarchy-status-dnd - DND status checker
  • bin/omarchy-status-nightlight - Night light status checker
  • bin/omarchy-status-recording - Recording status checker
  • bin/omarchy-status-idle - Idle lock status checker

Configuration:

  • Updates to config/waybar/config.jsonc - adds status cluster group and individual modules
  • Updates to config/waybar/style.css - styling for status indicators

Architecture

  • Individual scripts - Each contains specific status checking logic
  • Daemon - Calls individual scripts and caches results for efficiency
  • Waybar integration - Each status type is a separate waybar module in a group

User Experience

  • Click DND indicator to toggle do-not-disturb mode
  • Click night light indicator to toggle nightlight on/off
  • Click recording indicator to start/stop screen recording
  • Click idle lock indicator to enable/disable automatic locking
  • Icons use nerd fonts that match Omarchy's existing toggle menu style
  • Small, subtle 10px icons that don't interfere with other waybar elements
  • Recording indicator is colored red for visibility

Performance Metrics

Memory Usage:

  • Daemon baseline: ~4.2MB RSS
  • Stable memory usage (no leaks detected over 30s stress test)
  • Individual scripts: No persistent memory footprint

CPU Usage:

  • Daemon idle: 0.0-0.1% CPU (negligible)
  • Individual script execution: 13-84ms per call
  • Background monitoring with 500ms polling interval

Tools Integration:

  • mako: Notification daemon monitoring via makoctl mode
  • hyprsunset: Night light detection via hyprctl hyprsunset temperature
  • hypridle: Idle lock monitoring via process detection
  • wl-screenrec: Primary screen recording detection (non-nvidia systems)
  • wf-recorder: Alternative recording software detection (nvidia systems)
  • obs: External recording software detection
  • ffmpeg: Screen capture detection via process pattern matching

The system provides real-time status awareness with minimal system impact while integrating seamlessly with Omarchy's existing tools and aesthetic.

@dhh

dhh commented Aug 9, 2025

Copy link
Copy Markdown
Contributor

Thanks for this, but I don't want to add a permanent icon to something that for most people is very rarely used. But! Maybe there's a way to have it just show up when DND is active. Just don't want it to be a constant process for something that's a rare use case.

If we can solve this well, maybe we can also get an icon for nightlight and for screen recording running and for idle lock off. There are a handful of these states that it would be nice to represent with an icon when they're on. But it needs to be super light!

@alansikora
alansikora marked this pull request as draft August 9, 2025 17:07
Comment thread bin/omarchy-notification-status Resolved
@alansikora alansikora changed the title feat: Add notification status indicator to waybar Add unified status cluster for waybar with dynamic indicators Aug 11, 2025
@alansikora alansikora changed the title Add unified status cluster for waybar with dynamic indicators Add status indicator cluster for waybar Aug 11, 2025
@alansikora
alansikora force-pushed the add-notification-status-indicator branch 3 times, most recently from ffcacbc to 14fa1a7 Compare August 11, 2025 16:32
@alansikora
alansikora requested a review from dhh August 11, 2025 16:39
@alansikora

alansikora commented Aug 11, 2025 •

Copy link
Copy Markdown
Contributor Author

@dhh I still want to test this on a fresh install, just to be extra sure everything is working as expected, but some eyes here would be good in the meantime.

Tips on what is the best way to test those changes in our current system and on fresh systems are welcome. On this iteration I literally created direct links to my Omarchy repository, or copy/pasted after changes.

@alansikora
alansikora force-pushed the add-notification-status-indicator branch from 52b03ff to b540c3c Compare August 11, 2025 17:57
@alansikora

Copy link
Copy Markdown
Contributor Author

I just added a click handler to the recording icon as well, so you can stop recording by clicking it.

@alansikora
alansikora force-pushed the add-notification-status-indicator branch 2 times, most recently from 098d5ce to 792b50f Compare August 11, 2025 18:53
Adds a visual indicator in the waybar to show when notifications are silenced (do-not-disturb mode).

- Shows a red dot when notifications are disabled
- Shows a dimmed dot when notifications are enabled
- Clicking the indicator toggles do-not-disturb mode
- Syncs with the existing SUPER+CTRL+, keyboard shortcut

This provides immediate visual feedback about notification status, making it easier for users to know when they've silenced notifications.
- Only displays indicators when states are actually active
- Supports multiple status types: DND, night light, screen recording, idle lock
- Uses distinct symbols: • for DND, ◐ for night light, ● for recording, ◯ for idle lock
- Completely hides module when no states are active (no visual clutter)
- Extensible design for future status indicators
- Improved performance with better error handling
- Add wl-screenrec detection for non-nvidia systems
- Add click handler to start/stop recording
- Fix idle lock toggle functionality
@alansikora
alansikora force-pushed the add-notification-status-indicator branch from 792b50f to 8f455de Compare August 11, 2025 18:58
@alansikora
alansikora changed the base branch from master to dev August 11, 2025 19:03
@alansikora
alansikora marked this pull request as ready for review August 11, 2025 19:12
@alansikora

Copy link
Copy Markdown
Contributor Author

It is ready for review, and it looks good with the new update icon
image

Comment thread bin/omarchy-status-daemon Resolved
@dhh

dhh commented Aug 23, 2025

Copy link
Copy Markdown
Contributor

This is very cool. Great work. We need to keep an eye on whether polling these four modules every second has any performance/cpu load impact, but other than that, I really like it!

@dhh
dhh merged commit 318a6e2 into omacom:dev Aug 23, 2025
@alansikora
alansikora deleted the add-notification-status-indicator branch August 23, 2025 16:25
@alansikora

Copy link
Copy Markdown
Contributor Author

@dhh Thank you! It works well on most of my machines but I saw a small bug on another device: when I disabled night light (or standby lock, can't remember), it presented the record icon, but I could not reproduce it anymore.

Let's keep an eye.

@dhh

dhh commented Aug 23, 2025

Copy link
Copy Markdown
Contributor

On first boot I'm seeing the indicator for recording. So there's an issue with that.

@dhh

dhh commented Aug 23, 2025

Copy link
Copy Markdown
Contributor
image

Even though the omarchy-status-recording looks ok?

@dhh

dhh commented Aug 23, 2025

Copy link
Copy Markdown
Contributor

maybe a timing issue with the hash?

@alansikora

Copy link
Copy Markdown
Contributor Author

I'm outside now but as soon as I'm back I will try to reproduce this. When you say first boot, is it the first boot ever or a restart would do?

But it is probably a timing issue with the hash

@dhh

dhh commented Aug 23, 2025

Copy link
Copy Markdown
Contributor

It's first-boot ever I'm seeing this on.

@dhh

dhh commented Aug 24, 2025

Copy link
Copy Markdown
Contributor

Hmm, that recording dot seems pretty flaky. Also seeing it on restarts. Going to remove it for now. Do open a PR when you've found what's up 👌

@alansikora

Copy link
Copy Markdown
Contributor Author

Yes, it works fine on my Alienware M15 R7 (with or without Studio Display), but I've seen a very flaky behavior on other hardware. I will circle back with a better approach to it.

OmarSkalli pushed a commit to OmarSkalli/omarchy that referenced this pull request Aug 26, 2025
* feat: Add notification status indicator to waybar

Adds a visual indicator in the waybar to show when notifications are silenced (do-not-disturb mode).

- Shows a red dot when notifications are disabled
- Shows a dimmed dot when notifications are enabled
- Clicking the indicator toggles do-not-disturb mode
- Syncs with the existing SUPER+CTRL+, keyboard shortcut

This provides immediate visual feedback about notification status, making it easier for users to know when they've silenced notifications.

* feat: Convert to unified status cluster that only shows active states

- Only displays indicators when states are actually active
- Supports multiple status types: DND, night light, screen recording, idle lock
- Uses distinct symbols: • for DND, ◐ for night light, ● for recording, ◯ for idle lock
- Completely hides module when no states are active (no visual clutter)
- Extensible design for future status indicators
- Improved performance with better error handling

* Implement lightweight hybrid status monitoring

* Enhance notification status cluster with modular design

* Add waybar configuration for status cluster

* Add recording click handler and fix process detection

- Add wl-screenrec detection for non-nvidia systems
- Add click handler to start/stop recording
- Fix idle lock toggle functionality

* minor alignment tweaks

* improved recording detection to be more specific

* Rely on Omarchy bin in PATH and lower interval to feel more snappy

* Seperate out screencording stop so it doesn't start when trying to stop OBS

* Add migration to add the status notifications

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
jakeprime pushed a commit to jakeprime/omarchy that referenced this pull request Aug 26, 2025
* feat: Add notification status indicator to waybar

Adds a visual indicator in the waybar to show when notifications are silenced (do-not-disturb mode).

- Shows a red dot when notifications are disabled
- Shows a dimmed dot when notifications are enabled
- Clicking the indicator toggles do-not-disturb mode
- Syncs with the existing SUPER+CTRL+, keyboard shortcut

This provides immediate visual feedback about notification status, making it easier for users to know when they've silenced notifications.

* feat: Convert to unified status cluster that only shows active states

- Only displays indicators when states are actually active
- Supports multiple status types: DND, night light, screen recording, idle lock
- Uses distinct symbols: • for DND, ◐ for night light, ● for recording, ◯ for idle lock
- Completely hides module when no states are active (no visual clutter)
- Extensible design for future status indicators
- Improved performance with better error handling

* Implement lightweight hybrid status monitoring

* Enhance notification status cluster with modular design

* Add waybar configuration for status cluster

* Add recording click handler and fix process detection

- Add wl-screenrec detection for non-nvidia systems
- Add click handler to start/stop recording
- Fix idle lock toggle functionality

* minor alignment tweaks

* improved recording detection to be more specific

* Rely on Omarchy bin in PATH and lower interval to feel more snappy

* Seperate out screencording stop so it doesn't start when trying to stop OBS

* Add migration to add the status notifications

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
gocs pushed a commit to gocs/omarchy that referenced this pull request Aug 28, 2025
* feat: Add notification status indicator to waybar

Adds a visual indicator in the waybar to show when notifications are silenced (do-not-disturb mode).

- Shows a red dot when notifications are disabled
- Shows a dimmed dot when notifications are enabled
- Clicking the indicator toggles do-not-disturb mode
- Syncs with the existing SUPER+CTRL+, keyboard shortcut

This provides immediate visual feedback about notification status, making it easier for users to know when they've silenced notifications.

* feat: Convert to unified status cluster that only shows active states

- Only displays indicators when states are actually active
- Supports multiple status types: DND, night light, screen recording, idle lock
- Uses distinct symbols: • for DND, ◐ for night light, ● for recording, ◯ for idle lock
- Completely hides module when no states are active (no visual clutter)
- Extensible design for future status indicators
- Improved performance with better error handling

* Implement lightweight hybrid status monitoring

* Enhance notification status cluster with modular design

* Add waybar configuration for status cluster

* Add recording click handler and fix process detection

- Add wl-screenrec detection for non-nvidia systems
- Add click handler to start/stop recording
- Fix idle lock toggle functionality

* minor alignment tweaks

* improved recording detection to be more specific

* Rely on Omarchy bin in PATH and lower interval to feel more snappy

* Seperate out screencording stop so it doesn't start when trying to stop OBS

* Add migration to add the status notifications

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
@morgoth

morgoth commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

@alansikora Hey, I'm running omarchy 3.0.2 and I don't see the "nightlight" indicator when it's enabled. Does it work for you now?

@dhh

dhh commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

This work was reverted because it unfortunately was a bit flaky. Now we have a different approach for the recording dot. Would be nice to bring back some of the other indicators.

DanteCpp pushed a commit to DanteCpp/omarchy that referenced this pull request Oct 16, 2026
Keep the runtime's detector out of the snapshot check's no-detector test
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.

3 participants