Merge pull request #382 from tahayvr/omarchy-in-fastfetch

Display current Omarchy version in Fastfetch
This commit is contained in:
David Heinemeier Hansson
2025-07-28 09:56:31 +02:00
committed by GitHub
2 changed files with 150 additions and 141 deletions

View File

@ -47,7 +47,7 @@
{
"type": "swap",
"key": "└ └󰓡 ",
"keyColor": "green",
"keyColor": "green"
},
{
"type": "custom",
@ -79,6 +79,12 @@
"keyColor": "yellow"
},
"break",
{
"type": "command",
"key": "│ ├Ø",
"keyColor": "blue",
"text": "version=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/dev/null); echo \"Omarchy $version\""
},
{
"type": "de",
"key": " DE",
@ -97,17 +103,17 @@
{
"type": "icons",
"key": "│ ├󰀻",
"keyColor": "blue",
"keyColor": "blue"
},
{
"type": "cursor",
"key": "│ ├",
"keyColor": "blue",
"keyColor": "blue"
},
{
"type": "terminalfont",
"key": "│ ├",
"keyColor": "blue",
"keyColor": "blue"
},
{
"type": "terminal",
@ -138,7 +144,6 @@
"type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
},
"break",
"break"
]
}

4
migrations/1753683888.sh Normal file
View File

@ -0,0 +1,4 @@
echo "Adding Omarchy version info to fastfetch"
if [ -d ~/.config/fastfetch ]; then
cp ~/.local/share/omarchy/config/fastfetch/config.jsonc ~/.config/fastfetch/
fi