-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathnord-top
402 lines (305 loc) · 9.48 KB
/
nord-top
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
; vim:ft=dosini
[module/i3]
type = internal/i3
pin-workspaces = ${config.i3-pin-workspaces}
strip-wsnumbers = true
index-sort = true
enable-click = true
enable-scroll = true
wrapping-scroll = true
reverse-scroll = true
fuzzy-match = false
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; icons
ws-icon-0 = ${config.ws-icon-0}
ws-icon-1 = ${config.ws-icon-1}
ws-icon-2 = ${config.ws-icon-2}
ws-icon-3 = ${config.ws-icon-3}
ws-icon-4 = ${config.ws-icon-4}
ws-icon-5 = ${config.ws-icon-5}
ws-icon-6 = ${config.ws-icon-6}
ws-icon-7 = ${config.ws-icon-7}
ws-icon-8 = ${config.ws-icon-8}
ws-icon-9 = ${config.ws-icon-9}
ws-icon-default = ${config.ws-icon-default}
; color
label-focused =
label-focused-underline = ${colors.nord7}
label-focused-foreground = ${colors.nord7}
label-focused-padding = 2
label-unfocused = •
label-unfocused-foreground = ${colors.nord9}
label-unfocused-padding = 2
label-urgent =
label-urgent-foreground = ${colors.urgent}
label-urgent-background = ${colors.foreground}
label-urgent-padding = 2
; seperator
label-separator = |
label-separator-foreground = ${colors.buffer}
[module/bspwm]
type = internal/bspwm
ws-icon-0 = ${config.ws-icon-0}
ws-icon-1 = ${config.ws-icon-1}
ws-icon-2 = ${config.ws-icon-2}
ws-icon-3 = ${config.ws-icon-3}
ws-icon-4 = ${config.ws-icon-4}
ws-icon-5 = ${config.ws-icon-5}
ws-icon-6 = ${config.ws-icon-6}
ws-icon-7 = ${config.ws-icon-7}
ws-icon-8 = ${config.ws-icon-8}
ws-icon-9 = ${config.ws-icon-9}
ws-icon-default = ${config.ws-icon-default}
label-focused = %icon%
label-focused-underline = ${colors.nord7}
label-focused-foreground = ${colors.nord7}
label-focused-padding = 2
label-occupied = %icon%
label-occupied-underline = ${colors.nord9}
label-occupied-foreground = ${colors.nord9}
label-occupied-padding = 2
label-empty = %icon%
label-empty-foreground = ${colors.buffer}
label-empty-padding = 2
label-urgent =
label-urgent-foreground = ${colors.urgent}
label-urgent-background = ${colors.foreground}
label-urgent-padding = 2
; seperator
label-separator = |
label-separator-foreground = ${colors.buffer}
[module/workspace-name]
type = internal/i3
strip-wsnumbers = true
format = <label-state>
label-focused = %name%
label-focused-padding = 2
label-focused-foreground = ${colors.nord7}
label-focused-underline = ${colors.nord7}
label-unfocused =
label-urgent = %name%
label-urgent-foreground = ${colors.urgent}
label-urgent-background = ${colors.foreground}
label-urgent-padding = 2
[module/title]
type = internal/xwindow
format-foreground = ${colors.nord7}
format-underline = ${colors.nord7}
format-padding = 4
label-maxlen = 20
label-empty = Desktop
[module/date]
type = internal/date
interval = 1.0
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %H:%M
date-alt = %Y-%m-%d %a
format = <label>
label = %date%
label-margin = 1
label-underline = ${colors.nord8}
[module/battery]
type = internal/battery
full-at = ${config.battery-full-at}
battery = ${config.battery-bat}
adapter = ${config.battery-adp}
format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.foreground}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-framerate = 750
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${colors.notify}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-foreground = ${colors.notify}
label-full =
label-full-foreground = ${colors.success}
label-full-underline = ${colors.success}
[module/keyboard]
type = internal/xkeyboard
; List of indicators to ignore
bufferlist-0 = num lock
bufferlist-1 = scroll lock
; Format
format = <label-indicator>
label-indicator-on-capslock = CL
label-indicator-on-capslock-foreground = ${colors.warning}
label-indicator-on-capslock-underline = ${colors.warning}
; Icons
layout-icon-default =
[module/alsa]
type = internal/alsa
master-soundcard = ${config.master-soundcard}
speaker-soundcard = ${config.speaker-soundcard}
headphone-soundcard = ${config.headphone-soundcard}
master-mixer = ${config.master-mixer}
; Format
format-volume = <ramp-volume> <label-volume>
format-volume-underline = ${colors.function}
label-muted = muted
label-muted-foreground = ${colors.urgent}
label-muted-underline = ${colors.urgent}
ramp-volume-0 =
ramp-volume-0-foreground = ${colors.success}
ramp-volume-1 =
ramp-volume-1-foreground = ${colors.notify}
ramp-volume-2 =
ramp-volume-2-foreground = ${colors.urgent}
ramp-headphones-0 =
ramp-volume-foreground = ${colors.nord7}
[module/pulseaudio]
type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
interval = 5
; Format
format-volume = <ramp-volume> <label-volume>
format-volume-underline = ${colors.function}
label-muted = muted
label-muted-foreground = ${colors.urgent}
label-muted-underline = ${colors.urgent}
ramp-volume-0 =
ramp-volume-0-foreground = ${colors.success}
ramp-volume-1 =
ramp-volume-1-foreground = ${colors.notify}
ramp-volume-2 =
ramp-volume-2-foreground = ${colors.urgent}
ramp-headphones-0 =
ramp-volume-foreground = ${colors.nord7}
[module/backlight]
type = internal/backlight
card = intel_backlight
enable-scroll = true
; Use xbacklight when the default backlight does not work.
; For more details check https://github.com/polybar/polybar/wiki/Module:-xbacklight.
; [module/backlight]
; type = internal/xbacklight
; enable-scroll = true
; Format
format = <ramp> <label>
format-underline = ${colors.nord9}
ramp-0 =
label = %{A1:$HOME/.config/polybar/scripts/toggle-redshift.sh:}%percentage%%%{A}
ramp-foreground = ${colors.nord9}
[module/mpd]
type = internal/mpd
host = ${config.mpd-host}
port = ${config.mpd-port}
; Format
format-online = <toggle> <icon-prev> <label-song> <icon-next> <icon-stop> | <bar-progress> | <icon-repeat> <icon-random>
format-paused = <toggle> <icon-prev> <label-song> <icon-next> <icon-stop>
format-stopped = <toggle>
label-song-underline = ${colors.nord8}
label-song = %artist:0:10:...% - %title:0:10:...%
icon-play =
icon-play-foreground = ${colors.success}
icon-play-margin = 1
icon-pause =
icon-pause-foreground = ${colors.warning}
icon-pause-margin = 1
icon-stop =
icon-stop-foreground = ${colors.urgent}
icon-stop-margin = 1
icon-prev =
icon-prev-foreground = ${colors.function}
icon-prev-margin = 1
icon-next =
icon-next-foreground = ${colors.function}
icon-next-margin = 1
icon-repeat =
icon-repeat-margin = 1
icon-random =
icon-random-margin = 1
toggle-on-foreground = ${colors.success}
toggle-off-foreground = ${colors.urgent}
bar-progress-width = 20
bar-progress-indicator = |
bar-progress-fill = -
bar-progress-empty = -
bar-progress-gradient = true
bar-progress-foreground-0 = ${colors.nord7}
bar-progress-foreground-1 = ${colors.nord8}
bar-progress-foreground-2 = ${colors.nord9}
[module/notify]
type = custom/text
content =
content-foreground = ${colors.warning}
content-underline = ${colors.warning}
content-padding = 1
click-left = ${config.notify-click-left}
[module/network-short]
type = internal/network
interface = ${config.interface}
interval = 1
format-connected = %{A1:networkmanager_dmenu:}<ramp-signal>%{A}
format-disconnected = %{A1:networkmanager_dmenu:}<label-disconnected>%{A}
label-disconnected =
label-disconnected-foreground = ${colors.urgent}
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-0-foreground = ${colors.urgent}
ramp-signal-0-underline = ${colors.urgent}
ramp-signal-1-foreground = ${colors.notify}
ramp-signal-1-underline = ${colors.notify}
ramp-signal-2-foreground = ${colors.nord7}
ramp-signal-2-underline = ${colors.nord7}
ramp-signal-3-foreground = ${colors.success}
ramp-signal-3-underline = ${colors.success}
[module/spotify]
type = custom/script
interval = 1
format-prefix = " "
format = <label>
exec = python3 $HOME/.config/polybar/scripts/spotify_status.py -f '{artist}: {song}'
format-underline = #1db954
;control players (optional)
click-left = playerctl --player=spotify play-pause
click-right = playerctl --player=spotify next
click-middle = playerctl --player=spotify previous
[module/clash-widget]
type = custom/script
exec = ~/.config/polybar/scripts/clash.sh
interval = 3
click-left = ~/.config/polybar/scripts/clash.sh toggle
[module/onedrive-widget]
type = custom/script
exec = ~/.config/polybar/scripts/onedrive.sh
interval = 3
click-left = ~/.config/polybar/scripts/onedrive.sh toggle
[module/clipmenu-widget]
type = custom/script
exec = ~/.config/polybar/scripts/clipmenu.sh
interval = 3
click-left = ~/.config/polybar/scripts/clipmenu.sh menu
click-right = ~/.config/polybar/scripts/clipmenu.sh toggle
[module/rofi-run]
type = custom/text
content =
content-background = ${colors.nord9}
content-foreground = ${colors.background}
content-padding = 3
click-left = ~/.config/polybar/scripts/rofi_run
[module/logseq-sync]
type = custom/text
content =
content-foreground = ${colors.success}
content-padding = 1
content-left = git -C /home/yucklys/OneDrive/logseq push
content-right = git -C /home/yucklys/OneDrive/logseq pull -ff
[module/mullvad-status]
type = custom/script
exec = ~/.config/polybar/scripts/mullvad.sh
interval = 5
click-left = ${config.mullvad-click-left}