From 49f33169c1b0e7c7182d31e0434d6e70b2d7405e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 22 Nov 2025 10:37:49 +0100 Subject: [PATCH] Add mirror + pkgs channel to About menu --- bin/omarchy-version-mirror | 9 +++++++++ bin/omarchy-version-pkgs | 9 +++++++++ config/fastfetch/config.jsonc | 12 ++++++++++++ migrations/1763753641.sh | 3 +++ 4 files changed, 33 insertions(+) create mode 100755 bin/omarchy-version-mirror create mode 100755 bin/omarchy-version-pkgs create mode 100644 migrations/1763753641.sh diff --git a/bin/omarchy-version-mirror b/bin/omarchy-version-mirror new file mode 100755 index 00000000..88d6e697 --- /dev/null +++ b/bin/omarchy-version-mirror @@ -0,0 +1,9 @@ +#!/bin/bash + +if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then + echo "stable" +elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then + echo "edge" +else + echo "unknown" +fi diff --git a/bin/omarchy-version-pkgs b/bin/omarchy-version-pkgs new file mode 100755 index 00000000..4c384107 --- /dev/null +++ b/bin/omarchy-version-pkgs @@ -0,0 +1,9 @@ +#!/bin/bash + +if grep -q "https://pkgs.omarchy.org/stable/" /etc/pacman.conf; then + echo "stable" +elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then + echo "edge" +else + echo "unknown" +fi diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc index 31542724..607210c0 100644 --- a/config/fastfetch/config.jsonc +++ b/config/fastfetch/config.jsonc @@ -74,6 +74,18 @@ "keyColor": "blue", "text": "branch=$(omarchy-version-branch); echo \"$branch\"" }, + { + "type": "command", + "key": "│ ├󱞠", + "keyColor": "blue", + "text": "mirror=$(omarchy-version-mirror); echo \"$mirror\"" + }, + { + "type": "command", + "key": "│ ├", + "keyColor": "blue", + "text": "pkgs=$(omarchy-version-pkgs); echo \"$pkgs\"" + }, { "type": "kernel", "key": "│ ├", diff --git a/migrations/1763753641.sh b/migrations/1763753641.sh new file mode 100644 index 00000000..40d83994 --- /dev/null +++ b/migrations/1763753641.sh @@ -0,0 +1,3 @@ +echo "Include pacman mirror and OPR upstreams (edge vs stable) in About" + +omarchy-refresh-fastfetch