Files
2026-05-12 15:51:22 +02:00

60 lines
2.0 KiB
JSON

{
"logo": {
"type": "none"
},
"display": {
"separator": "",
"key": {
"type": "string"
}
},
"modules": [
{
"type": "command",
"key": " ",
"text": "bash -c \"echo -e '\\e[0m\\e[1m\\e[38;2;80;160;255m'$(hostname)' '$(date '+%d.%m.%Y - %H:%M') Uhr'\\e[0m'\""
},
{
"type": "break"
},
{
"type": "os",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m💻 OS: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{pretty-name} {arch}\u001b[0m"
},
{
"type": "kernel",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m⚙️ Kernel: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{release}\u001b[0m"
},
{
"type": "cpu",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m🧠 CPU: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{name}\u001b[0m"
},
{
"type": "memory",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m💾 RAM: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{used} / {total}\u001b[0m"
},
{
"type": "uptime",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m⏰ Uptime: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{days}d {hours}h {minutes}m\u001b[0m"
},
{
"type": "command",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m📦 OS Age: \u001b[0m",
"text": "bash -c 'birth=$(stat -c %W /); if [ \"$birth\" -eq 0 ]; then birth=$(stat -c %Y /); fi; now=$(date +%s); echo -e \"\\e[0m\\e[22m\\e[38;2;28;220;152m\\e[1m$(( (now - birth) / 86400 )) days\\e[0m\"'"
},
{
"type": "localip",
"key": "\u001b[0m\u001b[22m\u001b[38;2;246;116;1m🌐 IP: \u001b[0m",
"format": "\u001b[0m\u001b[22m\u001b[38;2;28;220;152m\u001b[1m{ipv4}\u001b[0m"
},
{
"type": "break"
}
]
}