Última actividad 1788250669

neofetch-like tool for fetching system information

Revisión c4288dc3ec036a9f5511ecc5e44b60cdcf622be3

config.jsonc Sin formato
1{
2 "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
3
4 "display": {
5 "separator": ": ",
6 "showErrors": false
7 },
8
9 "modules": [
10 "title",
11 "separator",
12
13 {
14 "type": "command",
15 "key": "OS Detail",
16 "text": "echo \"Debian GNU/Linux $(cat /etc/debian_version) ($( . /etc/os-release; printf '%s' \"$VERSION_CODENAME\" )) $(uname -m)\""
17 },
18
19 "host",
20
21 {
22 "type": "bios",
23 "key": "BIOS",
24 "format": "{vendor} {version} ({date})"
25 },
26
27 "kernel",
28 "uptime",
29 "packages",
30 "shell",
31 "terminal",
32
33 {
34 "type": "command",
35 "key": "User Accounts",
36 "text": "getent passwd | awk -F: '$3 >= 1000 && $3 < 65534 && $7 !~ /(nologin|false)$/ {printf \"%s%s\", sep, $1; sep=\", \"} END {if (sep == \"\") printf \"none\"; print \"\"}'"
37 },
38
39 "cpu",
40 "gpu",
41 "memory",
42 "swap",
43
44 {
45 "type": "disk",
46 "key": "Disk"
47 },
48
49 {
50 "type": "command",
51 "key": "Ethernet",
52 "text": "found=0; for p in /sys/class/net/*; do i=${p##*/}; [ \"$i\" = \"lo\" ] && continue; [ -d \"$p/wireless\" ] && continue; case \"$i\" in docker0|br-*|veth*|virbr*|vmnet*|tun*|tap*|wg*|tailscale*|podman*|cni*|flannel*|vxlan*) continue ;; esac; a=$(ip -o -4 addr show dev \"$i\" scope global | awk 'NR==1 {print $4}'); [ -z \"$a\" ] && a=\"no IPv4\"; s=$(cat \"$p/operstate\" 2>/dev/null || printf unknown); m=$(cat \"$p/address\" 2>/dev/null || printf unknown); [ \"$found\" -eq 1 ] && printf ' | '; printf '\\033[96m(%s)\\033[0m: %s [\\033[32m%s\\033[0m] - (%s)' \"$i\" \"$a\" \"$s\" \"$m\"; found=1; done; [ \"$found\" -eq 0 ] && printf 'No Ethernet device found'"
53 },
54
55 {
56 "type": "command",
57 "key": "Docker Bridge",
58 "text": "p=/sys/class/net/docker0; if [ -e \"$p\" ]; then i=docker0; a=$(ip -o -4 addr show dev \"$i\" scope global | awk 'NR==1 {print $4}'); [ -z \"$a\" ] && a=\"no IPv4\"; s=$(cat \"$p/operstate\" 2>/dev/null || printf unknown); printf '\\033[96m(%s)\\033[0m: %s [\\033[32m%s\\033[0m]' \"$i\" \"$a\" \"$s\"; else printf 'none'; fi"
59 },
60
61 {
62 "type": "command",
63 "key": "Docker Network",
64 "text": "found=0; for p in /sys/class/net/br-*; do [ -e \"$p\" ] || continue; i=${p##*/}; a=$(ip -o -4 addr show dev \"$i\" scope global | awk 'NR==1 {print $4}'); [ -z \"$a\" ] && a=\"no IPv4\"; s=$(cat \"$p/operstate\" 2>/dev/null || printf unknown); [ \"$found\" -eq 1 ] && printf ' | '; printf '\\033[96m(%s)\\033[0m: %s [\\033[32m%s\\033[0m]' \"$i\" \"$a\" \"$s\"; found=1; done; [ \"$found\" -eq 0 ] && printf 'none'"
65 },
66
67 {
68 "type": "command",
69 "key": "Docker VETH",
70 "text": "n=0; for p in /sys/class/net/veth*; do [ -e \"$p\" ] || continue; n=$((n+1)); done; if [ \"$n\" -eq 1 ]; then printf '1 interface'; else printf '%s interfaces' \"$n\"; fi"
71 },
72
73 {
74 "type": "command",
75 "key": "Wi-Fi",
76 "text": "found=0; for p in /sys/class/net/*; do i=${p##*/}; [ -d \"$p/wireless\" ] || continue; a=$(ip -o -4 addr show dev \"$i\" scope global | awk 'NR==1 {print $4}'); [ -z \"$a\" ] && a=\"no IPv4\"; s=$(cat \"$p/operstate\" 2>/dev/null || printf unknown); m=$(cat \"$p/address\" 2>/dev/null || printf unknown); [ \"$found\" -eq 1 ] && printf ' | '; printf '\\033[96m(%s)\\033[0m: %s [%s] - (%s)' \"$i\" \"$a\" \"$s\" \"$m\"; found=1; done; [ \"$found\" -eq 0 ] && printf 'none'"
77 },
78
79 {
80 "type": "wifi",
81 "key": "SSID"
82 },
83
84 {
85 "type": "publicip",
86 "key": "Public IP"
87 },
88
89 {
90 "type": "bluetoothradio",
91 "key": "Bluetooth Radio",
92 "format": "{name} - {vendor} - Bluetooth {version}"
93 },
94
95 {
96 "type": "bluetooth",
97 "key": "Bluetooth Device",
98 "showDisconnected": true,
99 "format": "{name} [{address}] - connected: {connected}"
100 },
101
102 "locale",
103 "break",
104 "colors"
105 ]
106}
107