Files
dotfiles/dot_config/fastfetch/config.jsonc
T
2026-05-13 18:55:54 +03:00

75 lines
2.1 KiB
JSON

{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json",
"logo": {
"type": "small",
"position": "left",
"printRemaining": false,
"padding": {
"top": 2,
"right": 1,
},
},
"display": {
"separator": " ",
"brightColor": false,
"color": {
"keys": "blue",
"title": "cyan",
"separator": "bright_black",
"output": "white",
},
"key": {
"width": 3,
"type": "icon",
},
"duration": {
"abbreviation": true,
},
},
"modules": [
"title",
"separator",
{
"type": "os",
"key": "os",
"format": "{name}",
},
{
"type": "kernel",
"key": "kernel",
"format": "{release}",
},
{
"type": "uptime",
"key": "uptime",
},
{
"type": "command",
"key": "age",
"shell": "/bin/sh",
"param": "-c",
"text": "first=\"$(sed -n '1{s/^\\[\\([^]]*\\)\\].*/\\1/p;q}' /var/log/pacman.log)\"; if [ -n \"$first\" ]; then start=\"${first%%+*}\"; now=$(date +%s); then_ts=$(date -d \"$start\" +%s 2>/dev/null || true); if [ -n \"$then_ts\" ]; then days=$(( (now-then_ts)/86400 )); years=$(( days/365 )); rem=$(( days%365 )); if [ \"$years\" -gt 0 ]; then printf '%sy %sd\\n' \"$years\" \"$rem\"; else printf '%sd\\n' \"$days\"; fi; else echo n/a; fi; else echo n/a; fi",
},
{
"type": "shell",
"key": "shell",
"format": "{pretty-name}",
},
{
"type": "terminal",
"key": "term",
"format": "{pretty-name}",
},
{
"type": "memory",
"key": "ram",
"format": "{used}/{total} ({percentage})",
},
{
"type": "disk",
"key": "disk",
"format": "{size-used}/{size-total} ({size-percentage})",
},
],
}