mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add status indicator cluster for waybar (#570)
* 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 <david@hey.com>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"group/status-cluster",
|
||||
"clock",
|
||||
"custom/update"
|
||||
],
|
||||
@@ -56,6 +57,7 @@
|
||||
"tooltip-format": "Omarchy update available",
|
||||
"interval": 3600
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"format": "",
|
||||
@@ -131,6 +133,39 @@
|
||||
"tray"
|
||||
]
|
||||
},
|
||||
"group/status-cluster": {
|
||||
"orientation": "inherit",
|
||||
"modules": [
|
||||
"custom/status-dnd",
|
||||
"custom/status-nightlight",
|
||||
"custom/status-recording",
|
||||
"custom/status-idle"
|
||||
]
|
||||
},
|
||||
"custom/status-dnd": {
|
||||
"exec": "omarchy-status-daemon dnd",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "makoctl mode -t do-not-disturb"
|
||||
},
|
||||
"custom/status-nightlight": {
|
||||
"exec": "omarchy-status-daemon nightlight",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "omarchy-toggle-nightlight"
|
||||
},
|
||||
"custom/status-recording": {
|
||||
"exec": "omarchy-status-daemon recording",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "omarchy-cmd-screenrecord-stop"
|
||||
},
|
||||
"custom/status-idle": {
|
||||
"exec": "omarchy-status-daemon idle",
|
||||
"return-type": "json",
|
||||
"interval": 1,
|
||||
"on-click": "omarchy-toggle-idle"
|
||||
},
|
||||
"custom/expand-icon": {
|
||||
"format": " ",
|
||||
"tooltip": false
|
||||
|
||||
@@ -53,3 +53,35 @@ tooltip {
|
||||
#custom-update {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin-left: 8.75px;
|
||||
}
|
||||
|
||||
#group-status-cluster {
|
||||
margin-right: 8.75px;
|
||||
}
|
||||
|
||||
#custom-status-dnd,
|
||||
#custom-status-nightlight,
|
||||
#custom-status-recording,
|
||||
#custom-status-idle {
|
||||
min-width: 12px;
|
||||
margin: 0 2px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#custom-status-dnd.status-dnd,
|
||||
#custom-status-nightlight.status-nightlight,
|
||||
#custom-status-idle.status-idle {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#custom-status-recording.status-recording {
|
||||
color: #a55555;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user