Skip to content

Commit d21048c

Browse files
committed
Presets: update examples/{24,26} [ci skip]
1 parent 8b0c32a commit d21048c

File tree

2 files changed

+176
-11
lines changed

2 files changed

+176
-11
lines changed

presets/examples/24.jsonc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@
2828
{
2929
"type": "title",
3030
"key": "{#90}{$1}│ {#92}User {#90}│",
31-
"format": "{$2}{$3}{user-name} {#2}[{home-dir}]"
31+
"format": "{$2}{$3}{user-name} {#2}[{home-dir}]"
3232
},
3333
{
3434
"type": "users",
3535
"key": "{#90}{$1}│ {#92}Users {#90}│",
3636
"myselfOnly": false,
37-
"format": "{$2}{$3}{1}@{host-name}{/host-name}localhost{/}{?client-ip} {#2}[IP:{client-ip}]{?} {#2}[Login time: {login-time}]",
37+
"format": "{$2}{$3}{1}@{host-name}{/host-name}localhost{/}{?client-ip} {#2}[IP:{client-ip}]{?} [Login time: {login-time}]"
3838
},
3939
{
4040
"type": "datetime",
4141
"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}]"
42+
"format": "{$2}{$3}{year}-{month-pretty}-{day-in-month} {hour-pretty}:{minute-pretty}:{second-pretty} [{weekday}] [W{week}] [UTC{offset-from-utc}]"
4343
},
4444
{
4545
"type": "title",
46-
"key": "{#90}{$1}│ {#93}Host: {#90}│",
47-
"format": "{$2}{$3}{#1}{#36}{host-name}"
46+
"key": "{#90}{$1}│ {#93}Host {#90}│",
47+
"format": "{$2}{$3}{host-name}"
4848
},
4949
{
5050
"type": "host",
5151
"key": "{#90}{$1}│ {#93}Machine {#90}│",
52-
"format": "{$2}{$3}{name} {#2}{version}"
52+
"format": "{$2}{$3}{name} {#2}{version}"
5353
},
5454
{
5555
"type": "os",
5656
"key": "{#90}{$1}│ {#93}OS {#90}│",
57-
"format": "{$2}{$3}{pretty-name} {codename} {#2}[v{version}] {#2}[{arch}]"
57+
"format": "{$2}{$3}{?pretty-name}{pretty-name}{?}{/pretty-name}{name}{/} {codename} {#2}[v{version}] [{arch}]"
5858
},
5959
{
6060
"type": "kernel",
6161
"key": "{#90}{$1}│ {#93}Kernel {#90}│",
62-
"format": "{$2}{$3}{sysname} {#2}[v{release}]"
62+
"format": "{$2}{$3}{sysname} {#2}[v{release}]"
6363
},
6464
{
6565
"type": "uptime",
@@ -71,14 +71,14 @@
7171
"key": "{#90}{$1}│ {#91}CPU {#90}│",
7272
"showPeCoreCount": true,
7373
"temp": true,
74-
"format": "{$2}{$3}{name} {#2}[C:{core-types}] {#2}[{freq-max}]"
74+
"format": "{$2}{$3}{name} {#2}[C:{core-types}] [{freq-max}]"
7575
},
7676
{
7777
"type": "gpu",
7878
"key": "{#90}{$1}│ {#91}GPU {#90}│",
7979
"detectionMethod": "auto",
8080
"driverSpecific": true,
81-
"format": "{$2}{$3}{name} {#2}[C:{core-count}] {#2}[{type}]"
81+
"format": "{$2}{$3}{name} {#2}[C:{core-count}]{?frequency} [{frequency}]{?} [{type}]"
8282
},
8383
{
8484
"type": "memory",
@@ -98,7 +98,7 @@
9898
{
9999
"type": "terminal",
100100
"key": "{#90}{$1}│ {#95}Terminal {#90}│",
101-
"format": "{$2}{$3}{pretty-name} {#2}[{version}] [PID:{pid}]"
101+
"format": "{$2}{$3}{pretty-name} {#2}[{version}] [PID:{pid}]"
102102
},
103103
{
104104
"type": "terminalfont",

presets/examples/26.jsonc

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

0 commit comments

Comments
 (0)