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

@ -1,144 +1,149 @@
{ {
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": { "logo": {
"padding": { "padding": {
"top": 5, "top": 5,
"right": 6 "right": 6
} }
},
"modules": [
"break",
{
"type": "custom",
"format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐"
}, },
"modules": [ {
"break", "type": "host",
{ "key": " PC",
"type": "custom", "keyColor": "green"
"format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐" },
}, {
{ "type": "cpu",
"type": "host", "key": "│ ├",
"key": " PC", "showPeCoreCount": true,
"keyColor": "green" "keyColor": "green"
}, },
{ {
"type": "cpu", "type": "gpu",
"key": "│ ├", "key": "│ ├",
"showPeCoreCount": true, "detectionMethod": "pci",
"keyColor": "green" "keyColor": "green"
}, },
{ {
"type": "gpu", "type": "display",
"key": "│ ├", "key": "│ ├󱄄",
"detectionMethod": "pci", "keyColor": "green"
"keyColor": "green" },
}, {
{ "type": "disk",
"type": "display", "key": "│ ├󰋊",
"key": "│ ├󱄄", "keyColor": "green"
"keyColor": "green" },
}, {
{ "type": "memory",
"type": "disk", "key": "│ ├",
"key": "│ ├󰋊", "keyColor": "green"
"keyColor": "green" },
}, {
{ "type": "swap",
"type": "memory", "key": "└ └󰓡 ",
"key": "│ ├", "keyColor": "green"
"keyColor": "green" },
}, {
{ "type": "custom",
"type": "swap", "format": "\u001b[90m└────────────────────────────────────────────────────┘"
"key": "└ └󰓡 ", },
"keyColor": "green", "break",
}, {
{ "type": "custom",
"type": "custom", "format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
"format": "\u001b[90m└────────────────────────────────────────────────────┘" },
}, {
"break", "type": "os",
{ "key": " OS",
"type": "custom", "keyColor": "yellow"
"format": "\u001b[90m┌──────────────────────Software──────────────────────┐" },
}, {
{ "type": "kernel",
"type": "os", "key": "│ ├",
"key": " OS", "keyColor": "yellow"
"keyColor": "yellow" },
}, {
{ "type": "packages",
"type": "kernel", "key": "│ ├󰏖",
"key": "│ ├", "keyColor": "yellow"
"keyColor": "yellow" },
}, {
{ "type": "shell",
"type": "packages", "key": "└ └",
"key": "│ ├󰏖", "keyColor": "yellow"
"keyColor": "yellow" },
}, "break",
{ {
"type": "shell", "type": "command",
"key": "└ └", "key": "│ ├Ø",
"keyColor": "yellow" "keyColor": "blue",
}, "text": "version=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/dev/null); echo \"Omarchy $version\""
"break", },
{ {
"type": "de", "type": "de",
"key": " DE", "key": " DE",
"keyColor": "blue" "keyColor": "blue"
}, },
{ {
"type": "wm", "type": "wm",
"key": "│ ├", "key": "│ ├",
"keyColor": "blue" "keyColor": "blue"
}, },
{ {
"type": "wmtheme", "type": "wmtheme",
"key": "│ ├󰉼", "key": "│ ├󰉼",
"keyColor": "blue" "keyColor": "blue"
}, },
{ {
"type": "icons", "type": "icons",
"key": "│ ├󰀻", "key": "│ ├󰀻",
"keyColor": "blue", "keyColor": "blue"
}, },
{ {
"type": "cursor", "type": "cursor",
"key": "│ ├", "key": "│ ├",
"keyColor": "blue", "keyColor": "blue"
}, },
{ {
"type": "terminalfont", "type": "terminalfont",
"key": "│ ├", "key": "│ ├",
"keyColor": "blue", "keyColor": "blue"
}, },
{ {
"type": "terminal", "type": "terminal",
"key": "└ └", "key": "└ └",
"keyColor": "blue" "keyColor": "blue"
}, },
{ {
"type": "custom", "type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘" "format": "\u001b[90m└────────────────────────────────────────────────────┘"
}, },
"break", "break",
{ {
"type": "custom", "type": "custom",
"format": "\u001b[90m┌────────────────────Uptime / Age────────────────────┐" "format": "\u001b[90m┌────────────────────Uptime / Age────────────────────┐"
}, },
{ {
"type": "command", "type": "command",
"key": " OS Age ", "key": " OS Age ",
"keyColor": "magenta", "keyColor": "magenta",
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days" "text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
}, },
{ {
"type": "uptime", "type": "uptime",
"key": " Uptime ", "key": " Uptime ",
"keyColor": "magenta" "keyColor": "magenta"
}, },
{ {
"type": "custom", "type": "custom",
"format": "\u001b[90m└────────────────────────────────────────────────────┘" "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