1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
| { "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json", "logo": { "type": "auto", // Logo type: auto, builtin, small, file, etc. // "source": "~/.config/fastfetch/logo.txt", "source": "~/mine/tongbu/jianying/孤独摇滚_山田凉.png", "width": 25, "height": 16, "padding": { "left": 2, "top": 1 } }, "display": { "separator": "", // Separator between keys and values "key": { "width": 16, // Aligns keys to this width "type": "both" // string, icon, both, or none } }, "modules": [ // ----------------系统基本信息---------------- { "type": "title", "key": "User", "keyColor": "32", "format": "{user-name}@{host-name}" }, { "type": "os", "keyColor": "32" }, { "type": "kernel", "keyColor": "32" }, { "condition": { // Conditional module: only show on non-macOS "!system": "macOS" }, "type": "disk", "key": "OS Age", "keyColor": "32", "folders": "/", "format": "{create-time:10} ({days} days)" }, { "condition": { // Conditional module: only show on macOS "system": "macOS" }, "type": "disk", "key": "OS Age", "keyColor": "32", "folders": "/System/Volumes/VM", // Work around for APFS on macOS "format": "{create-time:10} [{days} days]" }, { "type": "uptime", "keyColor": "32" }, "break", // ----------------使用状态和负载---------------- { "type": "disk", "keyColor": "33" }, { "type": "memory", "keyColor": "33" }, { "type": "swap", "keyColor": "33" }, { "type": "command", "key": "Load", "keyColor": "33", "keyIcon": "", "text": "w | head -n 1 | awk -F': ' '{print $2}'" }, "break", // ----------------桌面环境---------------- { "type": "shell", "keyColor": "31" }, { "type": "terminal", "keyColor": "31", "format": "{pretty-name} {version} {#37}● {#36}● {#35}● {#34}● {#33}● {#32}● {#31}● {#30}●" }, { "type": "de", "key": "Desktop", "keyColor": "31" }, { "type": "font", "key": "Font", "keyColor": "31", "format": "{0}" }, { "type": "terminalfont", "key": "Term Font", "keyColor": "31" }, "break", // ----------------运行环境---------------- { "type": "command", "key": "Go", "keyIcon": "", "keyColor": "34", "text": "go version | cut -d' ' -f3", "format": "go {~2}" // {~2} removes first 2 characters (go) }, { "type": "command", "key": "Python", "keyIcon": "", "keyColor": "34", "text": "python3 --version", "format": "python {~7}" }, { "type": "command", "key": "NodeJS", "keyIcon": "", "keyColor": "34", "text": "node --version", "format": "node {~1}" // {~1} removes first character (v) }, { "type": "command", "key": "PNPM", "keyIcon": "", "keyColor": "34", "text": "pnpm --version", "format": "pnpm {}" }, { "type": "command", "key": "Git", "keyIcon": "", "keyColor": "34", "text": "git version", "format": "git {~12}" }, "break", // ----------------网络信息---------------- { "type": "localip", "key": "LAN IP", // "keyColor": "33", "showIpv6": true, "showPrefixLen": false }, // { // "type": "publicip", // "key": "WAN IP", // // "keyColor": "33", // "cache": true, // "timeout": 600 // ms // }, "break" ] }
|