{ "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "logo": { "type": "small", "padding": { "top": 2, "right": 4 }, "color": { "1": "blue", "2": "white" } }, "display": { "separator": " ", "key": { "width": 16 }, "color": { "separator": "90" } }, "modules": [ { "type": "title", "colorUser": "blue", "colorAt": "90", "colorHost": "cyan" }, "separator", { "type": "os", "key": "󱄅 os", "keyColor": "blue", "format": "{2} {8}" }, { "type": "kernel", "key": "󰌽 kernel", "keyColor": "blue", "format": "{2}" }, { "type": "packages", "key": "󰏗 pkgs", "keyColor": "blue" }, { "type": "uptime", "key": "󰅐 uptime", "keyColor": "blue" }, "break", { "type": "cpu", "key": "󱛠 cpu", "keyColor": "green", "format": "{1} ({4}t @ {6})" }, { "type": "gpu", "key": "󰍹 gpu", "keyColor": "green", "format": "{2} [{6}]" }, { "type": "memory", "key": "󰑭 ram", "keyColor": "green" }, { "type": "disk", "key": "󰋊 disk", "keyColor": "green", "folders": "/" }, "break", { "type": "wm", "key": "󱂬 wm", "keyColor": "yellow", "format": "{2}" }, { "type": "terminal", "key": "󰆍 terminal", "keyColor": "yellow" }, { "type": "shell", "key": "󱆃 shell", "keyColor": "yellow" }, "break", { "type": "command", "key": "󰃑 installed", "keyColor": "magenta", "text": "birth=$(stat -c %W /); echo \"$(( ($(date +%s) - birth) / 86400 )) days\"" }, { "type": "command", "key": "󰜅 generation", "keyColor": "magenta", "text": "nixos-rebuild list-generations | awk '$NF == \"True\" {print $2, $3}' | xargs -I {} date -d \"{}\" +\"%s\" | awk '{diff=systime()-$1; if(diff<3600) printf \"%d mins\\n\", diff/60; else if(diff<86400) printf \"%.0f hours\\n\", diff/3600; else printf \"%.0f days\\n\", diff/86400}'" }, "break", { "type": "colors", "paddingLeft": 1, "block": { "width": 3, "range": [0, 7] } } ] }