From 45465d3e7ca1c5352eaf4ea514114daa90d913a1 Mon Sep 17 00:00:00 2001 From: Djordje Kovacevic Date: Sun, 21 Sep 2025 08:40:48 +0200 Subject: [PATCH 1/5] Fix TUI install script - $TERMINAL should remain variable --- bin/omarchy-tui-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-tui-install b/bin/omarchy-tui-install index 121ce940..1b373f6f 100755 --- a/bin/omarchy-tui-install +++ b/bin/omarchy-tui-install @@ -43,7 +43,7 @@ cat >"$DESKTOP_FILE" < Date: Sun, 21 Sep 2025 09:29:44 +0200 Subject: [PATCH 2/5] Add migration to fix Docker and Disk Usage TUIs --- migrations/1758436991.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 migrations/1758436991.sh diff --git a/migrations/1758436991.sh b/migrations/1758436991.sh new file mode 100644 index 00000000..b9a2e7b5 --- /dev/null +++ b/migrations/1758436991.sh @@ -0,0 +1,17 @@ +echo "Fix Disk Usage and Docker TUIs" + +APP_DIR="$HOME/.local/share/applications" +ICON_DIR="$APP_DIR/icons" + +# Don't use omarchy-tui-remove to preserve icons + +if [[ -f "$APP_DIR/Docker.desktop" ]]; then + rm "$APP_DIR/Docker.desktop" + omarchy-tui-install "Docker" "lazydocker" tile "$ICON_DIR/Docker.png" +fi + +if [[ -f "$APP_DIR/Disk Usage.desktop" ]]; then + rm "$APP_DIR/Disk Usage.desktop" + omarchy-tui-install "Disk Usage" "bash -c 'dust -r; read -n 1 -s'" float "$ICON_DIR/Disk Usage.png" +fi + From 4d9f932e6cf36247a11006a86927b552d0cb999b Mon Sep 17 00:00:00 2001 From: Djordje Kovacevic Date: Tue, 23 Sep 2025 22:52:58 +0200 Subject: [PATCH 3/5] Replace "--class" with "--class=" --- bin/omarchy-tui-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-tui-install b/bin/omarchy-tui-install index 1b373f6f..916db654 100755 --- a/bin/omarchy-tui-install +++ b/bin/omarchy-tui-install @@ -43,7 +43,7 @@ cat >"$DESKTOP_FILE" < Date: Wed, 24 Sep 2025 13:37:56 -0500 Subject: [PATCH 4/5] Use output display or region geometry to record The previous code did not identify the output display correctly, leading to wf-recorder asking the user to select the region when the user requested the display output to be selected. With this change the bash script will use slurp with the -o flag to identify the display output. This has not been tested with wl-screenrec as no change has been made to its call signature in omarchy-cmd-screenrecord and the wl-screenrec binary is not included in the default omarchy installation. --- bin/omarchy-cmd-screenrecord | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-cmd-screenrecord b/bin/omarchy-cmd-screenrecord index 29fda33d..ee4622f2 100755 --- a/bin/omarchy-cmd-screenrecord +++ b/bin/omarchy-cmd-screenrecord @@ -15,7 +15,7 @@ SCOPE="$1" AUDIO=$([[ $2 == "audio" ]] && echo "--audio") start_screenrecording() { - filename="$OUTPUT_DIR/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" + local filename="$OUTPUT_DIR/screenrecording-$(date +'%Y-%m-%d_%H-%M-%S').mp4" if lspci | grep -qi 'nvidia'; then wf-recorder $AUDIO -f "$filename" -c libx264 -p crf=23 -p preset=medium -p movflags=+faststart "$@" & @@ -47,7 +47,8 @@ screenrecording_active() { if screenrecording_active; then stop_screenrecording elif [[ "$SCOPE" == "output" ]]; then - start_screenrecording + output=$(slurp -o) || exit 1 + start_screenrecording -g "$output" else region=$(slurp) || exit 1 start_screenrecording -g "$region" From 796ef67ede4c7fb75c75bf2a0d66d41b4caefe54 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 28 Sep 2025 15:18:25 -0400 Subject: [PATCH 5/5] Revert "Fix for '(null)' display on AirPod source selection" --- bin/omarchy-cmd-audio-switch | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bin/omarchy-cmd-audio-switch b/bin/omarchy-cmd-audio-switch index d73205c3..63ce7a1e 100755 --- a/bin/omarchy-cmd-audio-switch +++ b/bin/omarchy-cmd-audio-switch @@ -23,13 +23,7 @@ fi next_sink=$(echo "$sinks" | jq -r ".[$next_sink_index]") next_sink_name=$(echo "$next_sink" | jq -r '.name') - next_sink_description=$(echo "$next_sink" | jq -r '.description') -if [ "$next_sink_description" = "(null)" ] || [ "$next_sink_description" = "null" ] || [ -z "$next_sink_description" ]; then - sink_id=$(echo "$next_sink" | jq -r '.properties."object.id"') - next_sink_description=$(wpctl status | grep -E "\s+\*?\s+${sink_id}\." | sed -E 's/^.*[0-9]+\.\s+//' | sed -E 's/\s+\[.*$//') -fi - next_sink_volume=$(echo "$next_sink" | jq -r \ '.volume | to_entries[0].value.value_percent | sub("%"; "")') next_sink_is_muted=$(echo "$next_sink" | jq -r '.mute')