aboutsummaryrefslogtreecommitdiffstats
path: root/dotconfig/polybar/modules
blob: c001df62337624b39167f865914d7df429dd5d76 (plain)
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
403
404
[module/sep]
	type = custom/text
	content = |

	content-background = ${color.background}
	content-foreground = ${color.background}

[module/pulseaudio]
	type = internal/pulseaudio

	; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
	; If not, uses default sink
	sink = alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo

	; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
	use-ui-max = false

	; Interval for volume increase/decrease (in percent points)
	interval = 5

	; Available tags:
	;   <label-volume> (default)
	;   <ramp-volume>
	;   <bar-volume>
	format-volume = <ramp-volume><label-volume>
	format-volume-overline = ${color.background}
	format-volume-underline = ${color.background}

	label-volume = %percentage%%
	label-volume-background = ${color.background-alt}
	label-volume-padding = 1

	ramp-volume-0 = 
	ramp-volume-1 = 
	ramp-volume-2 = 
	ramp-volume-3 = 
	ramp-volume-4 = 
	ramp-volume-background = ${color.blue}
	ramp-volume-padding = 1

	; Available tags:
	;   <label-muted> (default)
	;   <ramp-volume>
	;   <bar-volume>
	format-muted = <label-muted>
	format-muted-prefix = 
	format-muted-prefix-background = ${color.red}
	format-muted-prefix-padding = 1
	format-muted-overline = ${color.background}
	format-muted-underline = ${color.background}

	label-muted = "Muted"
	label-muted-foreground = ${color.foreground}
	label-muted-background = ${color.background-alt}
	label-muted-padding = 1

	; Right click
	click-right = pavucontrol

[module/backlight]
	type = internal/backlight

	; xbacklight only works with Intel. Other drivers (e.g. Radeon) did not
	; add support for the RandR backlight property.
	;type = internal/xbacklight

	; Use the following command to list available cards:
	; $ ls -1 /sys/class/backlight/
	card = amdgpu_bl0

	; Use the `/sys/class/backlight/.../actual-brightness` file
	; rather than the regular `brightness` file.
	use-actual-brightness = true

	; Enable changing the backlight with the scroll wheel
	; NOTE: This may require additional configuration on some systems. Polybar will
	; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar
	; to have write access to that file.
	; DO NOT RUN POLYBAR AS ROOT. 
	; The recommended way is to add the user to the
	; `video` group and give that group write-privileges for the `brightness` file.
	; See the ArchWiki for more information:
	; https://wiki.archlinux.org/index.php/Backlight#ACPI
	enable-scroll = true

	; Available tags:
	;   <label> (default)
	;   <ramp>
	;   <bar>
	format = <ramp><label>
	format-overline = ${color.background}
	format-underline = ${color.background}

	; Available tokens:
	;   %percentage% (default)
	label = %percentage%%
	label-background = ${color.background-alt}
	label-padding = 1

	; Only applies if <ramp> is used
	ramp-0 = 
	ramp-1 = 
	ramp-2 = 
	ramp-3 = 
	ramp-4 = 
	ramp-background = ${color.lime}
	ramp-padding = 1

[module/battery]
	type = internal/battery

	; This is useful in case the battery never reports 100% charge
	full-at = 99

	; Use the following command to list batteries and adapters:
	; $ ls -1 /sys/class/power_supply/
	battery = BAT1
	adapter = ACAD

	; If an inotify event haven't been reported in this many
	; seconds, manually poll for new values.
	;
	; Needed as a fallback for systems that don't report events
	; on sysfs/procfs.
	;
	; Disable polling by setting the interval to 0.
	poll-interval = 5

	; see "man date" for details on how to format the time string
	; NOTE: if you want to use syntax tags here you need to use %%{...}
	time-format = %H:%M

	; Available tags:
	;   <label-charging> (default)
	;   <bar-capacity>
	;   <ramp-capacity>
	;   <animation-charging>
	format-charging = <label-charging>
	format-charging-prefix = 
	format-charging-prefix-background = ${color.green}
	format-charging-prefix-padding = 1
	format-charging-overline = ${color.background}
	format-charging-underline = ${color.background}

	; Available tags:
	;   <label-discharging> (default)
	;   <bar-capacity>
	;   <ramp-capacity>
	;   <animation-discharging>
	format-discharging = <ramp-capacity><label-discharging>
	format-discharging-overline = ${color.background}
	format-discharging-underline = ${color.background}

	; Available tags:
	;   <label-full> (default)
	;   <bar-capacity>
	;   <ramp-capacity>
	format-full = <label-full>
	format-full-prefix = 
	format-full-prefix-background = ${color.red}
	format-full-prefix-padding = 1
	format-full-overline = ${color.background}
	format-full-underline = ${color.background}

	; Available tokens:
	;   %percentage% (default)
	;   %time%
	;   %consumption% (shows current charge rate in watts)
	label-charging = %percentage%%
	label-charging-background = ${color.background-alt}
	label-charging-padding = 1

	; Available tokens:
	;   %percentage% (default)
	;   %time%
	;   %consumption% (shows current discharge rate in watts)
	label-discharging = %percentage%%
	label-discharging-background = ${color.background-alt}
	label-discharging-padding = 1

	; Available tokens:
	;   %percentage% (default)
	label-full = Full
	label-full-background = ${color.background-alt}
	label-full-padding = 1

	; Only applies if <ramp-capacity> is used
	ramp-capacity-0 = 
	ramp-capacity-1 = 
	ramp-capacity-2 = 
	ramp-capacity-3 = 
	ramp-capacity-4 = 
	ramp-capacity-background = ${color.pink}
	ramp-capacity-padding = 1

	; Only applies if <animation-charging> is used
	animation-charging-0 = 
	animation-charging-1 = 

	; Framerate in milliseconds
	animation-charging-framerate = 750

[module/date]
	type = internal/date

	; Seconds to sleep between updates
	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 = %Y-%m-%d%

	; Optional time format
	time = "%I:%M %p"

	; if `date-alt` or `time-alt` is defined, clicking
	; the module will toggle between formats
	time-alt = "%a, %d %b %Y"

	; Available tags:
	;   <label> (default)
	format = <label>
	format-prefix = 
	format-prefix-background = ${color.amber}
	format-prefix-padding = 1
	format-overline = ${color.background}
	format-underline = ${color.background}

	; Available tokens:
	;   %date%
	;   %time%
	; Default: %date%
	label = %time%
	label-background = ${color.background-alt}
	label-padding = 1

[module/network]
	type = internal/network

	; If no interface is specified, polybar can detect an interface of the given type.
	; If multiple are found, it will prefer running interfaces and otherwise just
	; use the first one found.
	; Either 'wired' or 'wireless'
	; New in version 3.6.0
	interface-type = ${env:NETWORK_TYPE:wired}

	; Seconds to sleep between updates
	interval = 1.0

	; Accumulate values from all interfaces
	; when querying for up/downspeed rate
	accumulate-stats = true

	; Consider an `UNKNOWN` interface state as up.
	; Some devices have an unknown state, even when they're running
	unknown-as-up = true

	; Available tags:
	;   <label-connected> (default)
	;   <ramp-signal>
	format-connected = <label-connected><ramp-signal>
	format-connected-overline = ${color.background}
	format-connected-underline = ${color.background}

	; Only applies if <ramp-signal> is used
	ramp-signal-0 = 
	ramp-signal-background = ${color.yellow}
	ramp-signal-padding = 1

	; Available tokens:
	;   %ifname%    [wireless+wired]
	;   %local_ip%  [wireless+wired]
	;   %local_ip6% [wireless+wired]
	;   %essid%     [wireless]
	;   %signal%    [wireless]
	;   %upspeed%   [wireless+wired]
	;   %downspeed% [wireless+wired]
	;   %linkspeed% [wired]
	label-connected = "%upspeed% | %downspeed%"
	label-connected-background = ${color.background-alt}
	label-connected-padding = 1

	; Available tags:
	;   <label-disconnected> (default)
	format-disconnected = <label-disconnected>
	format-disconnected-prefix = 
	format-disconnected-prefix-background = ${color.orange}
	format-disconnected-prefix-padding = 1
	format-disconnected-overline = ${color.background}
	format-disconnected-underline = ${color.background}

	; Available tokens:
	;   %ifname%    [wireless+wired]
	label-disconnected = "Offline"
	label-disconnected-background = ${color.background-alt}
	label-disconnected-padding = 1

[module/keyboard]
	type = internal/xkeyboard

	; List of indicators to ignore
	blacklist-0 = num lock
	blacklist-1 = scroll lock

	; Available tags:
	;   <label-layout> (default)
	;   <label-indicator> (default)
	format = <label-layout><label-indicator>
	format-prefix = 
	format-prefix-background = ${color.blue-gray}
	format-prefix-padding = 1
	format-overline = ${color.background}
	format-underline = ${color.background}

	; Available tokens:
	;   %layout%
	;   %name%
	;   %number%
	label-layout = "%layout%"
	label-layout-background = ${color.background-alt}
	label-layout-padding = 1

	; Available tokens:
	;   %name%
	label-indicator-on = "%name% "
	label-indicator-on-background = ${color.background-alt}

[module/title]
	type = internal/xwindow

	; Available tags:
	;   <label> (default)
	format = <label>
	format-prefix = 
	format-padding = 1
	format-foreground = ${color.foreground-alt}

	; Available tokens:
	;   %title%
	; Default: %title%
	label = " %title%"
	label-maxlen = 64

	; Used instead of label when there is no window title
	label-empty = " Desktop"

[module/workspaces]
	type = internal/xworkspaces

	; Only show workspaces defined on the same output as the bar
	pin-workspaces = true

	; Create click handler used to focus desktop
	enable-click = true

	; Create scroll handlers used to cycle desktops
	enable-scroll = true

	; Available tags:
	;   <label-monitor>
	;   <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
	format = <label-state>
	format-overline = ${color.background}
	format-underline = ${color.background}

	; Available tokens:
	;   %name%
	label-monitor = %name%

	; Available tokens:
	;   %name%
	;   %icon%
	;   %index%
	label-active = %name%
	label-active-foreground = ${color.foreground}
	label-active-background = ${color.primary}
	label-active-padding = 1

	; Available tokens:
	;   %name%
	;   %icon%
	;   %index%
	label-occupied = %name%
	label-occupied-foreground = ${color.foreground}
	label-occupied-background = ${color.background-alt}
	label-occupied-padding = 1

	; Available tokens:
	;   %name%
	;   %icon%
	;   %index%
	label-urgent = %name%
	label-urgent-foreground = ${color.foreground}
	label-urgent-background = ${color.red}
	label-urgent-padding = 1

	; Available tokens:
	;   %name%
	;   %icon%
	;   %index%
	label-empty = %name%
	label-empty-foreground = ${color.foreground}
	label-empty-background = ${color.background-alt}
	label-empty-padding = 1