···
138
138
mainBar = {
139
139
height = 8;
140
140
spacing = 0;
141
141
-
141
141
+
142
142
modules-left = [
143
143
-
"sway/workspaces"
144
144
-
"sway/mode"
145
145
-
"sway/scratchpad"
146
143
"custom/media"
147
144
];
148
148
-
145
145
+
149
146
modules-center = [
150
150
-
"sway/window"
147
147
+
"clock"
151
148
];
152
152
-
149
149
+
153
150
modules-right = [
154
151
"mpd"
155
152
"pulseaudio"
···
162
159
"sway/language"
163
160
"battery"
164
161
"battery#bat2"
165
165
-
"clock"
166
162
"custom/power"
167
163
];
168
168
-
164
164
+
169
165
"keyboard-state" = {
170
166
numlock = true;
171
167
capslock = true;
172
168
format = "{name} {icon}";
173
169
format-icons = {
174
174
-
locked = " ";
175
175
-
unlocked = " ";
170
170
+
locked = " ";
171
171
+
unlocked = " ";
176
172
};
177
173
};
178
178
-
179
179
-
"sway/mode" = {
180
180
-
format = "<span style=\"italic\">{}</span>";
181
181
-
};
182
182
-
183
183
-
"sway/scratchpad" = {
184
184
-
format = "{icon} {count}";
185
185
-
show-empty = false;
186
186
-
format-icons = [ "" "" ];
187
187
-
tooltip = true;
188
188
-
tooltip-format = "{app}: {title}";
189
189
-
};
190
190
-
174
174
+
191
175
mpd = {
192
176
format = "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ";
193
177
format-disconnected = "Disconnected ";
···
195
179
unknown-tag = "N/A";
196
180
interval = 5;
197
181
consume-icons = {
198
198
-
on = " ";
182
182
+
on = " ";
199
183
};
200
184
random-icons = {
201
201
-
off = "<span color=\"#f53c3c\"></span> ";
202
202
-
on = " ";
185
185
+
off = "<span color=\"#f53c3c\"></span> ";
186
186
+
on = " ";
203
187
};
204
188
repeat-icons = {
205
205
-
on = " ";
189
189
+
on = " ";
206
190
};
207
191
single-icons = {
208
208
-
on = "1 ";
192
192
+
on = "1 ";
209
193
};
210
194
state-icons = {
211
211
-
paused = "";
212
212
-
playing = "";
195
195
+
paused = "";
196
196
+
playing = "";
213
197
};
214
198
tooltip-format = "MPD (connected)";
215
199
tooltip-format-disconnected = "MPD (disconnected)";
216
200
};
217
217
-
201
201
+
218
202
idle_inhibitor = {
219
203
format = "{icon}";
220
204
format-icons = {
221
221
-
activated = "";
222
222
-
deactivated = "";
205
205
+
activated = " ";
206
206
+
deactivated = " ";
223
207
};
224
208
};
225
225
-
209
209
+
226
210
tray = {
227
211
spacing = 10;
228
212
};
229
229
-
213
213
+
230
214
clock = {
231
215
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
232
216
format-alt = "{:%Y-%m-%d}";
233
217
};
234
234
-
218
218
+
235
219
cpu = {
236
236
-
format = "{usage}% ";
220
220
+
format = "{usage}% ";
237
221
tooltip = false;
238
222
};
239
239
-
223
223
+
240
224
memory = {
241
241
-
format = "{}% ";
225
225
+
format = "{}% ";
242
226
};
243
243
-
227
227
+
244
228
temperature = {
245
229
critical-threshold = 80;
246
230
format = "{temperatureC}°C {icon}";
247
247
-
format-icons = [ "" "" "" ];
231
231
+
format-icons = [
232
232
+
""
233
233
+
""
234
234
+
""
235
235
+
];
248
236
};
249
249
-
237
237
+
250
238
backlight = {
251
239
format = "{percent}% {icon}";
252
240
format-icons = [
253
253
-
""
254
254
-
""
255
255
-
""
256
256
-
""
257
257
-
""
258
258
-
""
259
259
-
""
260
260
-
""
261
261
-
""
241
241
+
""
242
242
+
""
243
243
+
""
244
244
+
""
245
245
+
""
246
246
+
""
247
247
+
""
248
248
+
""
249
249
+
""
262
250
];
263
251
};
264
264
-
252
252
+
265
253
battery = {
266
254
states = {
267
255
warning = 30;
···
269
257
};
270
258
format = "{capacity}% {icon}";
271
259
format-full = "{capacity}% {icon}";
272
272
-
format-charging = "{capacity}% ";
273
273
-
format-plugged = "{capacity}% ";
260
260
+
format-charging = "{capacity}% ";
261
261
+
format-plugged = "{capacity}% ";
274
262
format-alt = "{time} {icon}";
275
275
-
format-icons = [ "" "" "" "" "" ];
263
263
+
format-icons = [
264
264
+
""
265
265
+
""
266
266
+
""
267
267
+
""
268
268
+
""
269
269
+
];
276
270
};
277
277
-
271
271
+
278
272
"battery#bat2" = {
279
273
bat = "BAT2";
280
274
};
281
281
-
275
275
+
282
276
"power-profiles-daemon" = {
283
277
format = "{icon}";
284
278
tooltip-format = "Power profile: {profile}\nDriver: {driver}";
285
279
tooltip = true;
286
280
format-icons = {
287
287
-
default = "";
288
288
-
performance = "";
289
289
-
balanced = " ";
290
290
-
power-saver = " ";
281
281
+
default = "";
282
282
+
performance = "";
283
283
+
balanced = " ";
284
284
+
power-saver = " ";
291
285
};
292
286
};
293
293
-
287
287
+
294
288
network = {
295
295
-
format-wifi = "{essid} ({signalStrength}%) ";
296
296
-
format-ethernet = "{ipaddr}/{cidr} ";
297
297
-
tooltip-format = "{ifname} via {gwaddr} ";
298
298
-
format-linked = "{ifname} (No IP) ";
289
289
+
format-wifi = "{essid} ({signalStrength}%) ";
290
290
+
format-ethernet = "{ipaddr}/{cidr} ";
291
291
+
tooltip-format = "{ifname} via {gwaddr} ";
292
292
+
format-linked = "{ifname} (No IP) ";
299
293
format-disconnected = "Disconnected ⚠";
300
294
format-alt = "{ifname}: {ipaddr}/{cidr}";
301
295
};
302
302
-
296
296
+
303
297
pulseaudio = {
304
298
format = "{volume}% {icon} {format_source}";
305
305
-
format-bluetooth = "{volume}% {icon} {format_source}";
306
306
-
format-bluetooth-muted = " {icon} {format_source}";
307
307
-
format-muted = " {format_source}";
308
308
-
format-source = "{volume}% ";
309
309
-
format-source-muted = " ";
299
299
+
format-bluetooth = "{volume}% {icon} {format_source}";
300
300
+
format-bluetooth-muted = " {icon} {format_source}";
301
301
+
format-muted = " {format_source}";
302
302
+
format-source = "{volume}% ";
303
303
+
format-source-muted = " ";
310
304
format-icons = {
311
311
-
headphone = "";
312
312
-
hands-free = "";
313
313
-
headset = "";
314
314
-
phone = "";
315
315
-
portable = "";
316
316
-
car = "";
317
317
-
default = [ "" " " " " ];
305
305
+
headphone = "";
306
306
+
hands-free = "";
307
307
+
headset = "";
308
308
+
phone = "";
309
309
+
portable = "";
310
310
+
car = "";
311
311
+
default = [
312
312
+
""
313
313
+
" "
314
314
+
" "
315
315
+
];
318
316
};
319
317
on-click = "pavucontrol";
320
318
};
321
321
-
319
319
+
322
320
"custom/media" = {
323
321
format = "{icon} {text}";
324
322
return-type = "json";
325
323
max-length = 40;
326
324
format-icons = {
327
327
-
spotify = " ";
325
325
+
spotify = " ";
328
326
default = "🎜 ";
329
327
};
330
328
escape = true;
331
329
exec = "$HOME/.config/waybar/mediaplayer.py 2> /dev/null";
332
330
};
333
333
-
331
331
+
334
332
"custom/power" = {
335
333
format = "⏻ ";
336
334
tooltip = false;
···
345
343
};
346
344
};
347
345
};
348
348
-
# style = builtins.readFile ./waybar/style.css;
346
346
+
style = builtins.readFile ./waybar/style.css;
349
347
};
350
348
351
349
programs.ssh = {
···
7
7
"spacing": 0, // Gaps between modules (4px)
8
8
// Choose the order of the modules
9
9
"modules-left": [
10
10
-
"sway/workspaces",
11
11
-
"sway/mode",
12
12
-
"sway/scratchpad",
13
10
"custom/media"
14
11
],
15
15
-
"modules-center": [
16
16
-
"sway/window"
17
17
-
],
18
12
"modules-right": [
19
13
"mpd",
20
14
// "idle_inhibitor",
···
26
20
"temperature",
27
21
"backlight",
28
22
// "keyboard-state",
29
29
-
"sway/language",
30
23
"battery",
31
24
"battery#bat2",
32
25
"clock",
33
26
"custom/power"
34
27
],
35
28
// Modules configuration
36
36
-
// "sway/workspaces": {
37
37
-
// "disable-scroll": true,
38
38
-
// "all-outputs": true,
39
39
-
// "warp-on-scroll": false,
40
40
-
// "format": "{name}: {icon}",
41
41
-
// "format-icons": {
42
42
-
// "1": "",
43
43
-
// "2": "",
44
44
-
// "3": "",
45
45
-
// "4": "",
46
46
-
// "5": "",
47
47
-
// "urgent": "",
48
48
-
// "focused": "",
49
49
-
// "default": ""
50
50
-
// }
51
51
-
// },
52
29
"keyboard-state": {
53
30
"numlock": true,
54
31
"capslock": true,
···
57
34
"locked": " ",
58
35
"unlocked": " "
59
36
}
60
60
-
},
61
61
-
"sway/mode": {
62
62
-
"format": "<span style=\"italic\">{}</span>"
63
63
-
},
64
64
-
"sway/scratchpad": {
65
65
-
"format": "{icon} {count}",
66
66
-
"show-empty": false,
67
67
-
"format-icons": [
68
68
-
"",
69
69
-
""
70
70
-
],
71
71
-
"tooltip": true,
72
72
-
"tooltip-format": "{app}: {title}"
73
37
},
74
38
"mpd": {
75
39
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
···
100
64
"idle_inhibitor": {
101
65
"format": "{icon}",
102
66
"format-icons": {
103
103
-
"activated": "",
104
104
-
"deactivated": ""
67
67
+
"activated": " ",
68
68
+
"deactivated": " "
105
69
}
106
70
},
107
71
"tray": {
···
1
1
* {
2
2
-
font-family: FantasqueSansMono Nerd Font;
2
2
+
font-family: "JetBrainsMono Nerd Font", "Font Awesome 6 Free", monospace;
3
3
font-size: 14px;
4
4
min-height: 0;
5
5
}