···
132
132
"libsoup-2.74.3"
133
133
];
134
134
135
135
-
xdg.configFile."waybar/config.jsonc".source = ./waybar/config.jsonc;
136
135
programs.waybar = {
137
136
enable = true;
138
138
-
139
139
-
style = builtins.readFile ./waybar/style.css;
137
137
+
settings = {
138
138
+
mainBar = {
139
139
+
height = 8;
140
140
+
spacing = 0;
141
141
+
142
142
+
modules-left = [
143
143
+
"sway/workspaces"
144
144
+
"sway/mode"
145
145
+
"sway/scratchpad"
146
146
+
"custom/media"
147
147
+
];
148
148
+
149
149
+
modules-center = [
150
150
+
"sway/window"
151
151
+
];
152
152
+
153
153
+
modules-right = [
154
154
+
"mpd"
155
155
+
"pulseaudio"
156
156
+
"network"
157
157
+
"power-profiles-daemon"
158
158
+
"cpu"
159
159
+
"memory"
160
160
+
"temperature"
161
161
+
"backlight"
162
162
+
"sway/language"
163
163
+
"battery"
164
164
+
"battery#bat2"
165
165
+
"clock"
166
166
+
"custom/power"
167
167
+
];
168
168
+
169
169
+
"keyboard-state" = {
170
170
+
numlock = true;
171
171
+
capslock = true;
172
172
+
format = "{name} {icon}";
173
173
+
format-icons = {
174
174
+
locked = " ";
175
175
+
unlocked = " ";
176
176
+
};
177
177
+
};
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
+
191
191
+
mpd = {
192
192
+
format = "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ";
193
193
+
format-disconnected = "Disconnected ";
194
194
+
format-stopped = "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ";
195
195
+
unknown-tag = "N/A";
196
196
+
interval = 5;
197
197
+
consume-icons = {
198
198
+
on = " ";
199
199
+
};
200
200
+
random-icons = {
201
201
+
off = "<span color=\"#f53c3c\"></span> ";
202
202
+
on = " ";
203
203
+
};
204
204
+
repeat-icons = {
205
205
+
on = " ";
206
206
+
};
207
207
+
single-icons = {
208
208
+
on = "1 ";
209
209
+
};
210
210
+
state-icons = {
211
211
+
paused = "";
212
212
+
playing = "";
213
213
+
};
214
214
+
tooltip-format = "MPD (connected)";
215
215
+
tooltip-format-disconnected = "MPD (disconnected)";
216
216
+
};
217
217
+
218
218
+
idle_inhibitor = {
219
219
+
format = "{icon}";
220
220
+
format-icons = {
221
221
+
activated = "";
222
222
+
deactivated = "";
223
223
+
};
224
224
+
};
225
225
+
226
226
+
tray = {
227
227
+
spacing = 10;
228
228
+
};
229
229
+
230
230
+
clock = {
231
231
+
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
232
232
+
format-alt = "{:%Y-%m-%d}";
233
233
+
};
234
234
+
235
235
+
cpu = {
236
236
+
format = "{usage}% ";
237
237
+
tooltip = false;
238
238
+
};
239
239
+
240
240
+
memory = {
241
241
+
format = "{}% ";
242
242
+
};
243
243
+
244
244
+
temperature = {
245
245
+
critical-threshold = 80;
246
246
+
format = "{temperatureC}°C {icon}";
247
247
+
format-icons = [ "" "" "" ];
248
248
+
};
249
249
+
250
250
+
backlight = {
251
251
+
format = "{percent}% {icon}";
252
252
+
format-icons = [
253
253
+
""
254
254
+
""
255
255
+
""
256
256
+
""
257
257
+
""
258
258
+
""
259
259
+
""
260
260
+
""
261
261
+
""
262
262
+
];
263
263
+
};
264
264
+
265
265
+
battery = {
266
266
+
states = {
267
267
+
warning = 30;
268
268
+
critical = 15;
269
269
+
};
270
270
+
format = "{capacity}% {icon}";
271
271
+
format-full = "{capacity}% {icon}";
272
272
+
format-charging = "{capacity}% ";
273
273
+
format-plugged = "{capacity}% ";
274
274
+
format-alt = "{time} {icon}";
275
275
+
format-icons = [ "" "" "" "" "" ];
276
276
+
};
277
277
+
278
278
+
"battery#bat2" = {
279
279
+
bat = "BAT2";
280
280
+
};
281
281
+
282
282
+
"power-profiles-daemon" = {
283
283
+
format = "{icon}";
284
284
+
tooltip-format = "Power profile: {profile}\nDriver: {driver}";
285
285
+
tooltip = true;
286
286
+
format-icons = {
287
287
+
default = "";
288
288
+
performance = "";
289
289
+
balanced = " ";
290
290
+
power-saver = " ";
291
291
+
};
292
292
+
};
293
293
+
294
294
+
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) ";
299
299
+
format-disconnected = "Disconnected ⚠";
300
300
+
format-alt = "{ifname}: {ipaddr}/{cidr}";
301
301
+
};
302
302
+
303
303
+
pulseaudio = {
304
304
+
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 = " ";
310
310
+
format-icons = {
311
311
+
headphone = "";
312
312
+
hands-free = "";
313
313
+
headset = "";
314
314
+
phone = "";
315
315
+
portable = "";
316
316
+
car = "";
317
317
+
default = [ "" " " " " ];
318
318
+
};
319
319
+
on-click = "pavucontrol";
320
320
+
};
321
321
+
322
322
+
"custom/media" = {
323
323
+
format = "{icon} {text}";
324
324
+
return-type = "json";
325
325
+
max-length = 40;
326
326
+
format-icons = {
327
327
+
spotify = " ";
328
328
+
default = "🎜 ";
329
329
+
};
330
330
+
escape = true;
331
331
+
exec = "$HOME/.config/waybar/mediaplayer.py 2> /dev/null";
332
332
+
};
333
333
+
334
334
+
"custom/power" = {
335
335
+
format = "⏻ ";
336
336
+
tooltip = false;
337
337
+
menu = "on-click";
338
338
+
menu-file = "${./waybar/power_menu.xml}";
339
339
+
menu-actions = {
340
340
+
shutdown = "shutdown";
341
341
+
reboot = "reboot";
342
342
+
suspend = "systemctl suspend";
343
343
+
hibernate = "systemctl hibernate";
344
344
+
};
345
345
+
};
346
346
+
};
347
347
+
};
348
348
+
# style = builtins.readFile ./waybar/style.css;
140
349
};
141
350
142
351
programs.ssh = {
···
1
1
// -*- mode: jsonc -*-
2
2
{
3
3
-
// "layer": "top", // Waybar at top layer
4
4
-
// "position": "bottom", // Waybar position (top|bottom|left|right)
5
5
-
"height": 8, // Waybar height (to be removed for auto height)
6
6
-
// "width": 1280, // Waybar width
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
13
-
"custom/media"
14
14
-
],
15
15
-
"modules-center": [
16
16
-
"sway/window"
17
17
-
],
18
18
-
"modules-right": [
19
19
-
"mpd",
20
20
-
// "idle_inhibitor",
21
21
-
"pulseaudio",
22
22
-
"network",
23
23
-
"power-profiles-daemon",
24
24
-
"cpu",
25
25
-
"memory",
26
26
-
"temperature",
27
27
-
"backlight",
28
28
-
// "keyboard-state",
29
29
-
"sway/language",
30
30
-
"battery",
31
31
-
"battery#bat2",
32
32
-
"clock",
33
33
-
"tray",
34
34
-
"custom/power"
3
3
+
// "layer": "top", // Waybar at top layer
4
4
+
// "position": "bottom", // Waybar position (top|bottom|left|right)
5
5
+
"height": 8, // Waybar height (to be removed for auto height)
6
6
+
// "width": 1280, // Waybar width
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
13
+
"custom/media"
14
14
+
],
15
15
+
"modules-center": [
16
16
+
"sway/window"
17
17
+
],
18
18
+
"modules-right": [
19
19
+
"mpd",
20
20
+
// "idle_inhibitor",
21
21
+
"pulseaudio",
22
22
+
"network",
23
23
+
"power-profiles-daemon",
24
24
+
"cpu",
25
25
+
"memory",
26
26
+
"temperature",
27
27
+
"backlight",
28
28
+
// "keyboard-state",
29
29
+
"sway/language",
30
30
+
"battery",
31
31
+
"battery#bat2",
32
32
+
"clock",
33
33
+
"custom/power"
34
34
+
],
35
35
+
// 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
52
+
"keyboard-state": {
53
53
+
"numlock": true,
54
54
+
"capslock": true,
55
55
+
"format": "{name} {icon}",
56
56
+
"format-icons": {
57
57
+
"locked": " ",
58
58
+
"unlocked": " "
59
59
+
}
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
+
""
35
70
],
36
36
-
// Modules configuration
37
37
-
// "sway/workspaces": {
38
38
-
// "disable-scroll": true,
39
39
-
// "all-outputs": true,
40
40
-
// "warp-on-scroll": false,
41
41
-
// "format": "{name}: {icon}",
42
42
-
// "format-icons": {
43
43
-
// "1": "",
44
44
-
// "2": "",
45
45
-
// "3": "",
46
46
-
// "4": "",
47
47
-
// "5": "",
48
48
-
// "urgent": "",
49
49
-
// "focused": "",
50
50
-
// "default": ""
51
51
-
// }
52
52
-
// },
53
53
-
"keyboard-state": {
54
54
-
"numlock": true,
55
55
-
"capslock": true,
56
56
-
"format": "{name} {icon}",
57
57
-
"format-icons": {
58
58
-
"locked": " ",
59
59
-
"unlocked": " "
60
60
-
}
71
71
+
"tooltip": true,
72
72
+
"tooltip-format": "{app}: {title}"
73
73
+
},
74
74
+
"mpd": {
75
75
+
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
76
76
+
"format-disconnected": "Disconnected ",
77
77
+
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
78
78
+
"unknown-tag": "N/A",
79
79
+
"interval": 5,
80
80
+
"consume-icons": {
81
81
+
"on": " "
61
82
},
62
62
-
"sway/mode": {
63
63
-
"format": "<span style=\"italic\">{}</span>"
64
64
-
},
65
65
-
"sway/scratchpad": {
66
66
-
"format": "{icon} {count}",
67
67
-
"show-empty": false,
68
68
-
"format-icons": ["", ""],
69
69
-
"tooltip": true,
70
70
-
"tooltip-format": "{app}: {title}"
83
83
+
"random-icons": {
84
84
+
"off": "<span color=\"#f53c3c\"></span> ",
85
85
+
"on": " "
71
86
},
72
72
-
"mpd": {
73
73
-
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
74
74
-
"format-disconnected": "Disconnected ",
75
75
-
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
76
76
-
"unknown-tag": "N/A",
77
77
-
"interval": 5,
78
78
-
"consume-icons": {
79
79
-
"on": " "
80
80
-
},
81
81
-
"random-icons": {
82
82
-
"off": "<span color=\"#f53c3c\"></span> ",
83
83
-
"on": " "
84
84
-
},
85
85
-
"repeat-icons": {
86
86
-
"on": " "
87
87
-
},
88
88
-
"single-icons": {
89
89
-
"on": "1 "
90
90
-
},
91
91
-
"state-icons": {
92
92
-
"paused": "",
93
93
-
"playing": ""
94
94
-
},
95
95
-
"tooltip-format": "MPD (connected)",
96
96
-
"tooltip-format-disconnected": "MPD (disconnected)"
97
97
-
},
98
98
-
"idle_inhibitor": {
99
99
-
"format": "{icon}",
100
100
-
"format-icons": {
101
101
-
"activated": "",
102
102
-
"deactivated": ""
103
103
-
}
104
104
-
},
105
105
-
"tray": {
106
106
-
// "icon-size": 21,
107
107
-
"spacing": 10,
108
108
-
// "icons": {
109
109
-
// "blueman": "bluetooth",
110
110
-
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
111
111
-
// }
112
112
-
},
113
113
-
"clock": {
114
114
-
// "timezone": "America/New_York",
115
115
-
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
116
116
-
"format-alt": "{:%Y-%m-%d}"
117
117
-
},
118
118
-
"cpu": {
119
119
-
"format": "{usage}% ",
120
120
-
"tooltip": false
121
121
-
},
122
122
-
"memory": {
123
123
-
"format": "{}% "
124
124
-
},
125
125
-
"temperature": {
126
126
-
// "thermal-zone": 2,
127
127
-
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
128
128
-
"critical-threshold": 80,
129
129
-
// "format-critical": "{temperatureC}°C {icon}",
130
130
-
"format": "{temperatureC}°C {icon}",
131
131
-
"format-icons": ["", "", ""]
132
132
-
},
133
133
-
"backlight": {
134
134
-
// "device": "acpi_video1",
135
135
-
"format": "{percent}% {icon}",
136
136
-
"format-icons": ["", "", "", "", "", "", "", "", ""]
137
137
-
},
138
138
-
"battery": {
139
139
-
"states": {
140
140
-
// "good": 95,
141
141
-
"warning": 30,
142
142
-
"critical": 15
143
143
-
},
144
144
-
"format": "{capacity}% {icon}",
145
145
-
"format-full": "{capacity}% {icon}",
146
146
-
"format-charging": "{capacity}% ",
147
147
-
"format-plugged": "{capacity}% ",
148
148
-
"format-alt": "{time} {icon}",
149
149
-
// "format-good": "", // An empty format will hide the module
150
150
-
// "format-full": "",
151
151
-
"format-icons": ["", "", "", "", ""]
87
87
+
"repeat-icons": {
88
88
+
"on": " "
152
89
},
153
153
-
"battery#bat2": {
154
154
-
"bat": "BAT2"
90
90
+
"single-icons": {
91
91
+
"on": "1 "
155
92
},
156
156
-
"power-profiles-daemon": {
157
157
-
"format": "{icon}",
158
158
-
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
159
159
-
"tooltip": true,
160
160
-
"format-icons": {
161
161
-
"default": "",
162
162
-
"performance": "",
163
163
-
"balanced": " ",
164
164
-
"power-saver": " "
165
165
-
}
93
93
+
"state-icons": {
94
94
+
"paused": "",
95
95
+
"playing": ""
166
96
},
167
167
-
"network": {
168
168
-
// "interface": "wlp2*", // (Optional) To force the use of this interface
169
169
-
"format-wifi": "{essid} ({signalStrength}%) ",
170
170
-
"format-ethernet": "{ipaddr}/{cidr} ",
171
171
-
"tooltip-format": "{ifname} via {gwaddr} ",
172
172
-
"format-linked": "{ifname} (No IP) ",
173
173
-
"format-disconnected": "Disconnected ⚠",
174
174
-
"format-alt": "{ifname}: {ipaddr}/{cidr}"
97
97
+
"tooltip-format": "MPD (connected)",
98
98
+
"tooltip-format-disconnected": "MPD (disconnected)"
99
99
+
},
100
100
+
"idle_inhibitor": {
101
101
+
"format": "{icon}",
102
102
+
"format-icons": {
103
103
+
"activated": "",
104
104
+
"deactivated": ""
105
105
+
}
106
106
+
},
107
107
+
"tray": {
108
108
+
// "icon-size": 21,
109
109
+
"spacing": 10
110
110
+
},
111
111
+
"clock": {
112
112
+
// "timezone": "America/New_York",
113
113
+
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
114
114
+
"format-alt": "{:%Y-%m-%d}"
115
115
+
},
116
116
+
"cpu": {
117
117
+
"format": "{usage}% ",
118
118
+
"tooltip": false
119
119
+
},
120
120
+
"memory": {
121
121
+
"format": "{}% "
122
122
+
},
123
123
+
"temperature": {
124
124
+
// "thermal-zone": 2,
125
125
+
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
126
126
+
"critical-threshold": 80,
127
127
+
// "format-critical": "{temperatureC}°C {icon}",
128
128
+
"format": "{temperatureC}°C {icon}",
129
129
+
"format-icons": [
130
130
+
"",
131
131
+
"",
132
132
+
""
133
133
+
]
134
134
+
},
135
135
+
"backlight": {
136
136
+
// "device": "acpi_video1",
137
137
+
"format": "{percent}% {icon}",
138
138
+
"format-icons": [
139
139
+
"",
140
140
+
"",
141
141
+
"",
142
142
+
"",
143
143
+
"",
144
144
+
"",
145
145
+
"",
146
146
+
"",
147
147
+
""
148
148
+
]
149
149
+
},
150
150
+
"battery": {
151
151
+
"states": {
152
152
+
// "good": 95,
153
153
+
"warning": 30,
154
154
+
"critical": 15
175
155
},
176
176
-
"pulseaudio": {
177
177
-
// "scroll-step": 1, // %, can be a float
178
178
-
"format": "{volume}% {icon} {format_source}",
179
179
-
"format-bluetooth": "{volume}% {icon} {format_source}",
180
180
-
"format-bluetooth-muted": " {icon} {format_source}",
181
181
-
"format-muted": " {format_source}",
182
182
-
"format-source": "{volume}% ",
183
183
-
"format-source-muted": " ",
184
184
-
"format-icons": {
185
185
-
"headphone": "",
186
186
-
"hands-free": "",
187
187
-
"headset": "",
188
188
-
"phone": "",
189
189
-
"portable": "",
190
190
-
"car": "",
191
191
-
"default": ["", " ", " "]
192
192
-
},
193
193
-
"on-click": "pavucontrol"
156
156
+
"format": "{capacity}% {icon}",
157
157
+
"format-full": "{capacity}% {icon}",
158
158
+
"format-charging": "{capacity}% ",
159
159
+
"format-plugged": "{capacity}% ",
160
160
+
"format-alt": "{time} {icon}",
161
161
+
// "format-good": "", // An empty format will hide the module
162
162
+
// "format-full": "",
163
163
+
"format-icons": [
164
164
+
"",
165
165
+
"",
166
166
+
"",
167
167
+
"",
168
168
+
""
169
169
+
]
170
170
+
},
171
171
+
"battery#bat2": {
172
172
+
"bat": "BAT2"
173
173
+
},
174
174
+
"power-profiles-daemon": {
175
175
+
"format": "{icon}",
176
176
+
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
177
177
+
"tooltip": true,
178
178
+
"format-icons": {
179
179
+
"default": "",
180
180
+
"performance": "",
181
181
+
"balanced": " ",
182
182
+
"power-saver": " "
183
183
+
}
184
184
+
},
185
185
+
"network": {
186
186
+
// "interface": "wlp2*", // (Optional) To force the use of this interface
187
187
+
"format-wifi": "{essid} ({signalStrength}%) ",
188
188
+
"format-ethernet": "{ipaddr}/{cidr} ",
189
189
+
"tooltip-format": "{ifname} via {gwaddr} ",
190
190
+
"format-linked": "{ifname} (No IP) ",
191
191
+
"format-disconnected": "Disconnected ⚠",
192
192
+
"format-alt": "{ifname}: {ipaddr}/{cidr}"
193
193
+
},
194
194
+
"pulseaudio": {
195
195
+
// "scroll-step": 1, // %, can be a float
196
196
+
"format": "{volume}% {icon} {format_source}",
197
197
+
"format-bluetooth": "{volume}% {icon} {format_source}",
198
198
+
"format-bluetooth-muted": " {icon} {format_source}",
199
199
+
"format-muted": " {format_source}",
200
200
+
"format-source": "{volume}% ",
201
201
+
"format-source-muted": " ",
202
202
+
"format-icons": {
203
203
+
"headphone": "",
204
204
+
"hands-free": "",
205
205
+
"headset": "",
206
206
+
"phone": "",
207
207
+
"portable": "",
208
208
+
"car": "",
209
209
+
"default": [
210
210
+
"",
211
211
+
" ",
212
212
+
" "
213
213
+
]
194
214
},
195
195
-
"custom/media": {
196
196
-
"format": "{icon} {text}",
197
197
-
"return-type": "json",
198
198
-
"max-length": 40,
199
199
-
"format-icons": {
200
200
-
"spotify": " ",
201
201
-
"default": "🎜 "
202
202
-
},
203
203
-
"escape": true,
204
204
-
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
205
205
-
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
215
215
+
"on-click": "pavucontrol"
216
216
+
},
217
217
+
"custom/media": {
218
218
+
"format": "{icon} {text}",
219
219
+
"return-type": "json",
220
220
+
"max-length": 40,
221
221
+
"format-icons": {
222
222
+
"spotify": " ",
223
223
+
"default": "🎜 "
206
224
},
207
207
-
"custom/power": {
208
208
-
"format" : "⏻ ",
209
209
-
"tooltip": false,
210
210
-
"menu": "on-click",
211
211
-
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
212
212
-
"menu-actions": {
213
213
-
"shutdown": "shutdown",
214
214
-
"reboot": "reboot",
215
215
-
"suspend": "systemctl suspend",
216
216
-
"hibernate": "systemctl hibernate"
217
217
-
}
225
225
+
"escape": true,
226
226
+
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
227
227
+
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
228
228
+
},
229
229
+
"custom/power": {
230
230
+
"format": "⏻ ",
231
231
+
"tooltip": false,
232
232
+
"menu": "on-click",
233
233
+
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
234
234
+
"menu-actions": {
235
235
+
"shutdown": "shutdown",
236
236
+
"reboot": "reboot",
237
237
+
"suspend": "systemctl suspend",
238
238
+
"hibernate": "systemctl hibernate"
218
239
}
219
219
-
}
240
240
+
}
241
241
+
}