| 1 | // By jan-rex |
| 2 | // Modified from: https://github.com/fastfetch-cli/fastfetch/discussions/1269 |
| 3 | { |
| 4 | "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", |
| 5 | "logo": { |
| 6 | "padding": { |
| 7 | "top": 2 |
| 8 | } |
| 9 | }, |
| 10 | "display": { |
| 11 | "separator": "", |
| 12 | "constants": [ |
| 13 | // CONSTANT {$1} - COLOR BACKGROUND FOR KEY |
| 14 | "\u001b[48;2;43;43;69m", |
| 15 | // CONSTANT {$2} - COLOR BACKGROUND FOR OUTPUT |
| 16 | "\u001b[48;2;56;59;78m", |
| 17 | // CONSTANT {$3} - VERTICAL BARS AT START AND 75th CHARACTERS FORWARD AND BACKWARD |
| 18 | "\u001b[90m│ │\u001b[60D\u001b[39m", |
| 19 | ] |
| 20 | }, |
| 21 | "modules": [ |
| 22 | // CUSTOM - Top UI bar |
| 23 | { |
| 24 | "type": "custom", |
| 25 | "key": "{#90}{$1}╭─────────────╮", |
| 26 | "format": "{#90}{$2}╭────────────────────────────────────────────────────────────╮", |
| 27 | }, |
| 28 | { |
| 29 | "type": "title", |
| 30 | "key": "{#90}{$1}│ {#92}User {#90}│", |
| 31 | "format": "{$2}{$3}{user-name} {#2}[{home-dir}]" |
| 32 | }, |
| 33 | { |
| 34 | "type": "users", |
| 35 | "key": "{#90}{$1}│ {#92}Users {#90}│", |
| 36 | "myselfOnly": false, |
| 37 | "format": "{$2}{$3}{1}@{host-name}{/host-name}localhost{/}{?client-ip} {#2}[IP:{client-ip}]{?} {#2}[Login time: {login-time}]", |
| 38 | }, |
| 39 | { |
| 40 | "type": "datetime", |
| 41 | "key": "{#90}{$1}│ {#92}Datetime {#90}│", |
| 42 | "format": "{$2}{$3}{year}-{month-pretty}-{day-in-month} {hour-pretty}:{minute-pretty}:{second-pretty} {#2}{weekday} {#2}[W{week}] {#2}[UTC{offset-from-utc}]" |
| 43 | }, |
| 44 | { |
| 45 | "type": "title", |
| 46 | "key": "{#90}{$1}│ {#93}Host: {#90}│", |
| 47 | "format": "{$2}{$3}{#1}{#36}{host-name}" |
| 48 | }, |
| 49 | { |
| 50 | "type": "host", |
| 51 | "key": "{#90}{$1}│ {#93}Machine {#90}│", |
| 52 | "format": "{$2}{$3}{name} {#2}{version}" |
| 53 | }, |
| 54 | { |
| 55 | "type": "os", |
| 56 | "key": "{#90}{$1}│ {#93}OS {#90}│", |
| 57 | "format": "{$2}{$3}{pretty-name} {codename} {#2}[v{version}] {#2}[{arch}]" |
| 58 | }, |
| 59 | { |
| 60 | "type": "kernel", |
| 61 | "key": "{#90}{$1}│ {#93}Kernel {#90}│", |
| 62 | "format": "{$2}{$3}{sysname} {#2}[v{release}]" |
| 63 | }, |
| 64 | { |
| 65 | "type": "uptime", |
| 66 | "key": "{#90}{$1}│ {#93}Uptime {#90}│", |
| 67 | "format": "{$2}{$3}{?days}{days} Days + {?}{hours}:{minutes}:{seconds}" |
| 68 | }, |
| 69 | { |
| 70 | "type": "cpu", |
| 71 | "key": "{#90}{$1}│ {#91}CPU {#90}│", |
| 72 | "showPeCoreCount": true, |
| 73 | "temp": true, |
| 74 | "format": "{$2}{$3}{name} {#2}[C:{core-types}] {#2}[{freq-max}]" |
| 75 | }, |
| 76 | { |
| 77 | "type": "gpu", |
| 78 | "key": "{#90}{$1}│ {#91}GPU {#90}│", |
| 79 | "detectionMethod": "auto", |
| 80 | "driverSpecific": true, |
| 81 | "format": "{$2}{$3}{name} {#2}[C:{core-count}] {#2}[{type}]" |
| 82 | }, |
| 83 | { |
| 84 | "type": "memory", |
| 85 | "key": "{#90}{$1}│ {#91}Memory {#90}│", |
| 86 | "format": "{$2}{$3}{used} / {total} ({percentage}{$2})" |
| 87 | }, |
| 88 | { |
| 89 | "type": "disk", |
| 90 | "key": "{#90}{$1}│ {#91}Disk {#90}│", |
| 91 | "format": "{$2}{$3}{size-used} / {size-total} ({size-percentage}{$2})" |
| 92 | }, |
| 93 | { |
| 94 | "type": "poweradapter", |
| 95 | "key": "{#90}{$1}│ {#91}Power {#90}│", |
| 96 | "format": "{$2}{$3}{name}" |
| 97 | }, |
| 98 | { |
| 99 | "type": "terminal", |
| 100 | "key": "{#90}{$1}│ {#95}Terminal {#90}│", |
| 101 | "format": "{$2}{$3}{pretty-name} {#2}[{version}] [PID:{pid}]" |
| 102 | }, |
| 103 | { |
| 104 | "type": "terminalfont", |
| 105 | "key": "{#90}{$1}│ {#95}Font {#90}│", |
| 106 | "format": "{$2}{$3}{name} {#2}[{size}]" |
| 107 | }, |
| 108 | { |
| 109 | "type": "shell", |
| 110 | "key": "{#90}{$1}│ {#95}Shell {#90}│", |
| 111 | "format": "{$2}{$3}{pretty-name} {#2}[v{version}] [PID:{pid}]" |
| 112 | }, |
| 113 | { |
| 114 | // localip IPv4 |
| 115 | "type": "localip", |
| 116 | "key": "{#90}{$1}│ {#94}Local IPv4 {#90}│", |
| 117 | "showPrefixLen": true, |
| 118 | "showIpv4": true, |
| 119 | "showIpv6": false, |
| 120 | "showMtu": true, |
| 121 | "format": "{$2}{$3}{ifname}: {ipv4} {#2}[MTU:{mtu}]" |
| 122 | }, |
| 123 | { |
| 124 | // localip IPv6 |
| 125 | "type": "localip", |
| 126 | "key": "{#90}{$1}│ {#94}Local IPv6 {#90}│", |
| 127 | "showPrefixLen": true, |
| 128 | "showIpv4": false, |
| 129 | "showIpv6": true, |
| 130 | "showMtu": true, |
| 131 | "format": "{$2}{$3}{ifname}: {ipv6} {#2}[MTU:{mtu}]" |
| 132 | }, |
| 133 | { |
| 134 | "type": "publicip", |
| 135 | "key": "{#90}{$1}│ {#94}Public IPv4 {#90}│", |
| 136 | "ipv6": false, |
| 137 | "format": "{$2}{$3}{ip} {#2}[{location}]" |
| 138 | }, |
| 139 | { |
| 140 | "type": "publicip", |
| 141 | "key": "{#90}{$1}│ {#94}Public IPv6 {#90}│", |
| 142 | "ipv6": true, |
| 143 | "format": "{$2}{$3}{ip} {#2}[{location}]" |
| 144 | }, |
| 145 | // CUSTOM - Button UI bar |
| 146 | { |
| 147 | "type": "custom", |
| 148 | "key": "{#90}{$1}╰─────────────╯", |
| 149 | "format": "{#90}{$2}╰────────────────────────────────────────────────────────────╯", |
| 150 | } |
| 151 | ] |
| 152 | } |