Remove screen recording status until it is stable
This commit is contained in:
parent
c3af4b9469
commit
a34a671dc8
@ -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
|
||||
|
||||
|
@ -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
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user