142 lines
3.9 KiB
JSON
142 lines
3.9 KiB
JSON
{
|
|
"display": {
|
|
"color": {
|
|
"keys": "35",
|
|
"output": "90"
|
|
},
|
|
"separator": " ➜ "
|
|
},
|
|
"modules": [
|
|
"break",
|
|
{
|
|
"format": "┌─────────────────────────────────Hardware────────────────────────────────┐",
|
|
"type": "custom"
|
|
},
|
|
{
|
|
"format": "{5} {1} Type {2}",
|
|
"key": "│ PC",
|
|
"keyColor": "33",
|
|
"type": "host"
|
|
},
|
|
{
|
|
"format": "{1} ({3}) @ {7} GHz",
|
|
"key": "│ ├ ",
|
|
"keyColor": "33",
|
|
"type": "cpu"
|
|
},
|
|
{
|
|
"format": "{1} {2} @ {12} GHz",
|
|
"key": "│ ├ ",
|
|
"keyColor": "33",
|
|
"type": "gpu"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "33",
|
|
"type": "memory"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "33",
|
|
"type": "swap"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "33",
|
|
"type": "disk"
|
|
},
|
|
{
|
|
"key": "│ └ ",
|
|
"keyColor": "33",
|
|
"type": "monitor"
|
|
},
|
|
{
|
|
"format": "└──────────────────────────────────────────────────────────────────────────┘",
|
|
"type": "custom"
|
|
},
|
|
"break",
|
|
{
|
|
"format": "┌─────────────────────────────────Software─────────────────────────────────┐",
|
|
"type": "custom"
|
|
},
|
|
{
|
|
"key": "│ OS",
|
|
"keyColor": "31",
|
|
"type": "os"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "31",
|
|
"type": "kernel"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "31",
|
|
"type": "packages"
|
|
},
|
|
{
|
|
"key": "│ └ ",
|
|
"keyColor": "31",
|
|
"type": "shell"
|
|
},
|
|
{
|
|
"key": "│ WM",
|
|
"keyColor": "32",
|
|
"type": "wm"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "32",
|
|
"type": "wmtheme"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "32",
|
|
"type": "icons"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "32",
|
|
"type": "cursor"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"keyColor": "32",
|
|
"type": "terminal"
|
|
},
|
|
{
|
|
"key": "│ └ ",
|
|
"keyColor": "32",
|
|
"type": "terminalfont"
|
|
},
|
|
{
|
|
"format": "└──────────────────────────────────────────────────────────────────────────┘",
|
|
"type": "custom"
|
|
},
|
|
"break",
|
|
{
|
|
"format": "┌───────────────────────────────Age / Uptime───────────────────────────────┐",
|
|
"type": "custom"
|
|
},
|
|
{
|
|
"key": "│ IN",
|
|
"text": "birth_install=$(stat -c %W /)\nif [ \"$birth_install\" -gt 0 ]; then\n echo \"Installed $(date -d @\"$birth_install\" +\"%Y-%m-%d\")\"\nelse\n echo \"Installation date unknown\"\nfi\n",
|
|
"type": "command"
|
|
},
|
|
{
|
|
"key": "│ ├ ",
|
|
"text": "birth_install=$(stat -c %W /)\ncurrent=$(date +%s)\ndelta=$((current - birth_install))\ndelta_days=$((delta / 86400))\necho $delta_days days\n",
|
|
"type": "command"
|
|
},
|
|
{
|
|
"key": "│ └ ",
|
|
"type": "uptime"
|
|
},
|
|
{
|
|
"format": "└──────────────────────────────────────────────────────────────────────────┘",
|
|
"type": "custom"
|
|
},
|
|
"break"
|
|
]
|
|
}
|