From b6eb76d3ea2e7bfa1e7a1f02d4ab0e2f5cf8f8b9 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Thu, 23 Oct 2025 17:15:55 -0400 Subject: [PATCH] Add omarchy-debug --- bin/omarchy-debug | 60 +++++++++++++++++++++++++++++++++++ install/omarchy-base.packages | 2 ++ migrations/1761247569.sh | 2 ++ 3 files changed, 64 insertions(+) create mode 100755 bin/omarchy-debug create mode 100644 migrations/1761247569.sh diff --git a/bin/omarchy-debug b/bin/omarchy-debug new file mode 100755 index 00000000..11253c93 --- /dev/null +++ b/bin/omarchy-debug @@ -0,0 +1,60 @@ +#!/bin/bash + +LOG_FILE="/tmp/omarchy-debug.log" + +cat > "$LOG_FILE" </dev/null; comm -13 <(pacman -Sql | sort) <(pacman -Qqe | sort) | xargs -r expac -Q '%n %v (AUR)'; } | sort) +EOF + +OPTIONS=("View log" "Save in current directory") +if ping -c 1 8.8.8.8 >/dev/null 2>&1; then + OPTIONS=("Upload log" "${OPTIONS[@]}") +fi + +ACTION=$(gum choose "${OPTIONS[@]}") + +case "$ACTION" in + "Upload log") + echo "Uploading debug log to 0x0.st..." + URL=$(curl -sF "file=@$LOG_FILE" -Fexpires=24 https://0x0.st) + if [ $? -eq 0 ] && [ -n "$URL" ]; then + echo "✓ Log uploaded successfully!" + echo "Share this URL:" + echo "" + echo " $URL" + echo "" + echo "This link will expire in 24 hours." + else + echo "Error: Failed to upload log file" + exit 1 + fi + ;; + "View log") + less "$LOG_FILE" + ;; + "Save in current directory") + cp "$LOG_FILE" "./omarchy-debug.log" + echo "✓ Log saved to $(pwd)/omarchy-debug.log" + ;; +esac diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 44dbc0b2..f9d53bc8 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -36,6 +36,7 @@ elephant-todo elephant-unicode elephant-websearch evince +expac eza fastfetch fcitx5 @@ -65,6 +66,7 @@ imagemagick impala imv inetutils +inxi iwd jq kdenlive diff --git a/migrations/1761247569.sh b/migrations/1761247569.sh new file mode 100644 index 00000000..eff3980d --- /dev/null +++ b/migrations/1761247569.sh @@ -0,0 +1,2 @@ +echo "Install expac and inxi for omarchy-debug" +omarchy-pkg-add expac inxi