From 69fe4ae9973a9bca255c36f131702a0bc266df6f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 11:00:30 +0200 Subject: [PATCH] Remove screen recording status until it is stable (#1032) --- bin/omarchy-status-daemon | 5 ++--- bin/omarchy-status-recording | 12 ------------ config/waybar/config.jsonc | 7 ------- config/waybar/style.css | 6 ------ migrations/1755930114.sh | 2 +- 5 files changed, 3 insertions(+), 29 deletions(-) delete mode 100755 bin/omarchy-status-recording diff --git a/bin/omarchy-status-daemon b/bin/omarchy-status-daemon index 03f44ddf..2cdce2f8 100755 --- a/bin/omarchy-status-daemon +++ b/bin/omarchy-status-daemon @@ -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 diff --git a/bin/omarchy-status-recording b/bin/omarchy-status-recording deleted file mode 100755 index 72a98378..00000000 --- a/bin/omarchy-status-recording +++ /dev/null @@ -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 diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index e9e3ea6c..c32b0aed 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -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", diff --git a/config/waybar/style.css b/config/waybar/style.css index bb64ab03..8567e205 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -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; } diff --git a/migrations/1755930114.sh b/migrations/1755930114.sh index 8327f746..1a55d400 100644 --- a/migrations/1755930114.sh +++ b/migrations/1755930114.sh @@ -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