* Fit the About window to its rendered content The About fastfetch layout needs more columns than the shared 875x600 float provides, and the terminal's grid often only reaches its final size after fastfetch has printed, leaving the output wrapped over the logo or clipped at the initial 80-column grid (#6465). Give About a dedicated org.omarchy.about app id so launch-or-focus can actually match it, render through a loop that repaints on window size or branding changes, and measure the rendered content to fit the window around it with even padding, whatever the terminal font or About logo. Fixes #6465 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Spacing --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
162 lines
4.1 KiB
JSON
162 lines
4.1 KiB
JSON
{
|
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
"logo": {
|
|
"type": "file",
|
|
"source": "~/.config/omarchy/branding/about.txt",
|
|
"color": { "1": "green" },
|
|
"padding": {
|
|
"top": 2,
|
|
"right": 6,
|
|
"left": 2
|
|
}
|
|
},
|
|
"display": {
|
|
"disableLinewrap": true
|
|
},
|
|
"modules": [
|
|
"break",
|
|
"break",
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m┌──────────────────────Hardware──────────────────────┐"
|
|
},
|
|
{
|
|
"type": "host",
|
|
"key": " PC",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "cpu",
|
|
"key": "│ ├",
|
|
"showPeCoreCount": true,
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "gpu",
|
|
"key": "│ ├",
|
|
"detectionMethod": "pci",
|
|
"format": "{name}",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "display",
|
|
"key": "│ ├",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "disk",
|
|
"key": "│ ├",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "memory",
|
|
"key": "│ ├",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "swap",
|
|
"key": "└ └ ",
|
|
"keyColor": "green"
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
|
|
},
|
|
"break",
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m┌──────────────────────Software──────────────────────┐"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": "\ue900 OS",
|
|
"keyColor": "blue",
|
|
"text": "version=$(omarchy-version) && echo \"Omarchy $version\""
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": "│ ├",
|
|
"keyColor": "blue",
|
|
"text": "omarchy-version-branch"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": "│ ├",
|
|
"keyColor": "blue",
|
|
"text": "channel=$(omarchy-version-channel); echo \"$channel\""
|
|
},
|
|
{
|
|
"type": "kernel",
|
|
"key": "│ ├",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "wm",
|
|
"key": "│ ├",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "de",
|
|
"key": " DE",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "terminal",
|
|
"key": "│ ├",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "packages",
|
|
"key": "│ ├",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "wmtheme",
|
|
"key": "│ ├",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": "│ ├",
|
|
"keyColor": "blue",
|
|
"text": "theme=$(omarchy-theme-current); echo -e \"$theme \\e[38m●\\e[37m●\\e[36m●\\e[35m●\\e[34m●\\e[33m●\\e[32m●\\e[31m●\""
|
|
},
|
|
{
|
|
"type": "terminalfont",
|
|
"key": "└ └",
|
|
"keyColor": "blue"
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
|
|
},
|
|
"break",
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m┌────────────────Age / Uptime / Update───────────────┐"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": " OS Age",
|
|
"keyColor": "magenta",
|
|
"text": "echo $(( ($(date +%s) - $(stat -c %W /)) / 86400 )) days"
|
|
},
|
|
{
|
|
"type": "uptime",
|
|
"key": " Uptime",
|
|
"keyColor": "magenta"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"key": " Update",
|
|
"keyColor": "magenta",
|
|
"text": "updated=$(omarchy-version-pkgs); echo \"$updated\""
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"format": "\u001b[90m└────────────────────────────────────────────────────┘"
|
|
},
|
|
"break"
|
|
]
|
|
}
|