Add mirror + pkgs channel to About menu

This commit is contained in:
David Heinemeier Hansson 2025-11-22 10:37:49 +01:00
parent 04d2f10840
commit 49f33169c1
4 changed files with 33 additions and 0 deletions

9
bin/omarchy-version-mirror Executable file
View File

@ -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

9
bin/omarchy-version-pkgs Executable file
View File

@ -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

View File

@ -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": "│ ├",

3
migrations/1763753641.sh Normal file
View File

@ -0,0 +1,3 @@
echo "Include pacman mirror and OPR upstreams (edge vs stable) in About"
omarchy-refresh-fastfetch