config.jsonc (2137B)
1 { 2 "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", 3 "logo": { 4 "type": "small", 5 "color": { 6 "1": "33" 7 }, 8 "padding": { 9 "top": 1, 10 "left": 1, 11 "right": 2 12 } 13 }, 14 "display": { 15 "size": { 16 "maxPrefix": "MB", 17 "ndigits": 0 18 } 19 }, 20 "modules": [ 21 { 22 "type": "command", 23 "text": "fastfetch --config none --format json | jq -r '.[] | select(.type == \"OS\") | .result.id'", 24 "key": "os", 25 "keyColor": "33" 26 }, 27 { 28 "type": "kernel", 29 "key": "kernel", 30 "format": "{release}", 31 "keyColor": "33" 32 }, 33 { 34 "type": "packages", 35 "format": "{all}", 36 "key": "pkg", 37 "keyColor": "33" 38 }, 39 { 40 "type": "shell", 41 "format": "{pretty-name}", 42 "key": "shell", 43 "keyColor": "33" 44 }, 45 { 46 "type": "command", 47 "text": "fastfetch --config none --format json | jq -r '.[] | select(.type == \"WM\") | .result.prettyName' | tr '[:upper:]' '[:lower:]'", 48 "key": "wm", 49 "keyColor": "33" 50 }, 51 { 52 "type": "terminal", 53 "format": "{pretty-name}", 54 "key": "term", 55 "keyColor": "33" 56 }, 57 { 58 "type": "command", 59 "text": "fastfetch --config none --format json | jq -r '.[] | select(.type == \"CPU\") | .result.cpu' | tr '[:upper:]' '[:lower:]'", 60 "key": "cpu", 61 "keyColor": "33" 62 }, 63 { 64 "type": "command", 65 "text": "fastfetch --config none --format json | jq -r '.[] | select(.type == \"GPU\") | .result[0].name' | tr '[:upper:]' '[:lower:]'", 66 "key": "gpu", 67 "keyColor": "33" 68 }, 69 { 70 "type": "command", 71 "text": "free -h | awk '/Mem/ {print $3 \" / \" $2}' | tr '[:upper:]' '[:lower:]'", 72 "key": "ram", 73 "keyColor": "33" 74 }, 75 "break" 76 ] 77 }