aboutsummaryrefslogtreecommitdiffstats
path: root/dotconfig/polybar/modules
blob: 2de20c17bcb44a3bf6a3a96a3dcaf4e8f16fa198 (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
[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/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.gray}
	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