Remove screen recording status until it is stable

This commit is contained in:
David Heinemeier Hansson 2025-08-24 10:58:41 +02:00
parent c3af4b9469
commit a34a671dc8
5 changed files with 3 additions and 29 deletions

View File

@ -13,13 +13,12 @@ mkdir -p "$STATE_DIR"
update_all_status_files() {
"$SCRIPT_DIR/omarchy-status-dnd" >"$STATE_DIR/dnd"
"$SCRIPT_DIR/omarchy-status-nightlight" >"$STATE_DIR/nightlight"
"$SCRIPT_DIR/omarchy-status-recording" >"$STATE_DIR/recording"
"$SCRIPT_DIR/omarchy-status-idle" >"$STATE_DIR/idle"
}
# Generate hash for change detection
get_status_hash() {
echo "$(pgrep -c "mako|hyprsunset|wl-screenrec|wf-recorder|obs|hypridle" 2>/dev/null)$(makoctl mode 2>/dev/null | grep -c 'do-not-disturb')$(hyprctl hyprsunset temperature 2>/dev/null)"
echo "$($(makoctl mode 2>/dev/null | grep -c 'do-not-disturb')$(hyprctl hyprsunset temperature 2>/dev/null)"
}
# Start background monitoring daemon
@ -49,7 +48,7 @@ start_daemon() {
MODULE="$1"
if [ -z "$MODULE" ]; then
echo "Usage: $0 [dnd|nightlight|recording|idle]"
echo "Usage: $0 [dnd|nightlight|idle]"
exit 1
fi

View File

@ -1,12 +0,0 @@
#!/bin/bash
# Recording status indicator
if pgrep -x wl-screenrec >/dev/null 2>&1 || \
pgrep -x wf-recorder >/dev/null 2>&1 || \
pgrep -x obs >/dev/null 2>&1 || \
pgrep -f "ffmpeg.*(x11grab|gdigrab|avfoundation)" >/dev/null 2>&1; then
echo '{"text": "󰻂", "tooltip": "Screen recording active", "class": "status-recording"}'
else
echo '{"text": "", "tooltip": "", "class": "hidden"}'
fi

View File

@ -124,7 +124,6 @@
"modules": [
"custom/status-dnd",
"custom/status-nightlight",
"custom/status-recording",
"custom/status-idle"
]
},
@ -140,12 +139,6 @@
"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",

View File

@ -64,7 +64,6 @@ tooltip {
#custom-status-dnd,
#custom-status-nightlight,
#custom-status-recording,
#custom-status-idle {
min-width: 12px;
margin: 0 2px;
@ -77,11 +76,6 @@ tooltip {
opacity: 1;
}
#custom-status-recording.status-recording {
color: #a55555;
opacity: 1;
}
.hidden {
opacity: 0;
}

View File

@ -1,3 +1,3 @@
echo "Add status indicators for screen recordings, nightlight, dnd, and idle lock to Waybar"
echo "Add status indicators for nightlight, dnd, and idle lock to Waybar"
echo
gum confirm "Replace current Waybar config (backup will be made)?" && omarchy-refresh-waybar