A config file replaces fastfetch's default module structure, so the FWS logo was printed alone: no OS, kernel, CPU or disk lines at all. List the default modules explicitly so the output looks like a normal fastfetch call, with the FWS logo on the left and the machine's real information on the right; OS: comes from /etc/os-release and therefore reads "FWS Linux", not "Arch Linux".
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
// FWS — configuration fastfetch SYSTÈME (/etc/fastfetch/config.jsonc).
|
|
//
|
|
// Posée ici pour que le logo FWS apparaisse quel que soit le lancement :
|
|
// shell de login (cf. etc/profile.d/fastfetch.sh), terminal d'un bureau,
|
|
// TTY, root ou utilisateur, live ou système installé — fastfetch lit ce
|
|
// fichier en dernier recours, pour tout compte sans config personnelle
|
|
// (~/.config/fastfetch/config.jsonc d'un utilisateur reste prioritaire).
|
|
//
|
|
// Le logo est un fichier texte avec des marqueurs $1..$6 (4 carrés FWS + le
|
|
// « W »), coloriés par « logo.color ». Chemin ABSOLU : le rendu ne dépend donc
|
|
// pas du répertoire courant.
|
|
//
|
|
// « modules » reprend la structure par DÉFAUT de fastfetch : dès qu'un fichier
|
|
// de config existe, fastfetch n'affiche plus sa liste par défaut (on n'obtenait
|
|
// que le logo, sans aucune information). Les modules indisponibles sur la
|
|
// machine (batterie d'un fixe, DE absent…) se masquent d'eux-mêmes.
|
|
{
|
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
|
"logo": {
|
|
"type": "file",
|
|
"source": "/usr/local/share/fws/logo.txt",
|
|
"padding": {
|
|
"top": 1,
|
|
"left": 2
|
|
},
|
|
"color": {
|
|
"1": "#1ea064",
|
|
"2": "#2d7dd2",
|
|
"3": "#f0b428",
|
|
"4": "#195591",
|
|
"5": "#1c1c22",
|
|
"6": "#f5a523"
|
|
}
|
|
},
|
|
"modules": [
|
|
"title",
|
|
"separator",
|
|
"os",
|
|
"host",
|
|
"kernel",
|
|
"uptime",
|
|
"packages",
|
|
"shell",
|
|
"display",
|
|
"de",
|
|
"wm",
|
|
"wmtheme",
|
|
"theme",
|
|
"icons",
|
|
"font",
|
|
"cursor",
|
|
"terminal",
|
|
"terminalfont",
|
|
"cpu",
|
|
"gpu",
|
|
"memory",
|
|
"swap",
|
|
"disk",
|
|
"localip",
|
|
"battery",
|
|
"poweradapter",
|
|
"locale",
|
|
"break",
|
|
"colors"
|
|
]
|
|
}
|