rc

Switch date representation in Polybar

Author
Maarten 'Vngngdn' Vangeneugden
Date
Oct. 15, 2017, 7:58 p.m.
Hash
5fcca747c848b31728a3ec5980529ea35f96dd3a
Parent
80bd037efce6116e03b5d74bb78f50b9b913767c
Modified file
polybar/config

polybar/config

4 additions and 4 deletions.

View changes Hide changes
1
1
xcolor0 = ${xrdb:color0}
2
2
xcolor1 = ${xrdb:color1}
3
3
xcolor2 = ${xrdb:color2}
4
4
xcolor3 = ${xrdb:color3}
5
5
xcolor4 = ${xrdb:color4}
6
6
xcolor5 = ${xrdb:color5}
7
7
xcolor6 = ${xrdb:color6}
8
8
xcolor7 = ${xrdb:color7}
9
9
xcolor8 = ${xrdb:color8}
10
10
xcolor9 = ${xrdb:color9}
11
11
xcolor10 = ${xrdb:color10}
12
12
xcolor11 = ${xrdb:color11}
13
13
xcolor12 = ${xrdb:color12}
14
14
xcolor13 = ${xrdb:color13}
15
15
xcolor14 = ${xrdb:color14}
16
16
xcolor15 = ${xrdb:color15}
17
17
18
18
[bar/top]
19
19
width = 100%
20
20
height = 25 
21
21
offset-x = 0
22
22
offset-y = 10
23
23
;bottom = true
24
24
25
25
; MD grey 500 and 800 for underline
26
26
background = 000000
27
27
underline = ${colors.xcolor2}
28
28
29
29
foreground = #eee
30
30
31
31
underline-size = 3
32
32
underline-color = #424242FF
33
33
34
34
spacing = 1
35
35
padding-left = 0
36
36
padding-right = 0
37
37
module-margin-left = 0 
38
38
module-margin-right = 0
39
39
40
40
font-0 = Ubuntu:pixelsize=14;0
41
41
font-1 = FontAwesome:size=10;-2
42
42
font-2 = siji:pixelsize=10;0
43
43
44
44
modules-left = i3 xwindow
45
45
modules-center = date
46
46
modules-right = cpu network mpd battery backlight volume
47
47
48
48
;tray-position = right
49
49
;tray-padding = 2
50
50
tray-background = #66333333
51
51
tray-transparent = true
52
52
53
53
wm-restack = i3
54
54
55
55
scroll-up = i3wm-wsnext
56
56
scroll-down = i3wm-wsprev
57
57
58
58
; MODULES
59
59
60
60
[module/i3]
61
61
type = internal/i3
62
62
63
63
ws-icon-0 = web;
64
64
ws-icon-1 = term;
65
65
ws-icon-2 = chat;
66
66
ws-icon-3 = code;
67
67
ws-icon-4 = music;
68
68
;ws-icon-default = 
69
69
70
70
format =  
71
71
72
72
label-focused = %name%
73
73
label-focused-foreground = ${colors.xcolor10}
74
74
label-focused-padding = 4
75
75
76
76
label-occupied = %name%
77
77
label-unfocused-foreground = #616161FF
78
78
label-occupied-background = ${colors.xcolor7}
79
79
label-occupied-underline= ${colors.xcolor15}
80
80
label-occupied-padding = 4
81
81
82
82
label-urgent = %name%
83
83
label-urgent-background = ${colors.xcolor7}
84
84
label-urgent-underline= ${colors.xcolor15}
85
85
label-urgent-padding = 4
86
86
87
87
label-empty = %name%
88
88
label-empty-foreground = #44ffffff
89
89
label-empty-background = ${colors.xcolor7}
90
90
label-empty-underline= ${colors.xcolor15}
91
91
label-empty-padding = 4
92
92
93
93
[module/xwindow]
94
94
type = internal/xwindow
95
95
label = %title:0:120:...%
96
96
label-foreground = ${colors.xcolor11}
97
97
;label-underline= ${colors.xcolor11}
98
98
label-padding = 4
99
99
label-length = 60
100
100
label-maxlen = 60
101
101
102
102
[module/date]
103
103
type = internal/date
104
104
105
105
; Seconds to sleep between updates
106
106
interval = 1.0
107
107
108
108
; See "man date" for details on how to format the date string
109
109
; NOTE: if you want to use syntax tags here you need to use %%{...}
110
110
date = %A, %d %B %Y | 
111
-
+
111
112
112
; Optional time format
113
113
time = %H:%M:%S
114
-
+
114
115
115
; if `date-alt` or `time-alt` is defined, clicking
116
116
; the module will toggle between formats
117
117
date-alt = %d/%m -
118
-
time-alt = %H:%M
119
-
+
118
time-alt = %H:%M:%S
+
119
120
120
label = %date% %time%
121
121
format =    
122
122
format-foreground = ${colors.xcolor1}
123
123
format-padding = 3
124
124
125
125
[module/padding]
126
126
type = custom/text
127
127
content = 
128
128
content-foreground = #000000ff
129
129
content-background = #550000ff
130
130
131
131
[module/battery]
132
132
type = internal/battery
133
133
134
134
full-at = 90
135
135
136
136
battery = BAT0
137
137
adapter = AC0
138
138
139
139
poll-interval = 5
140
140
141
141
format-charging =   
142
142
format-discharging =   
143
143
format-full =   
144
144
label-charging = %percentage%
145
145
label-discharging = %percentage%
146
146
label-full = %percentage%
147
147
format-charging-padding = 3
148
148
format-discharging-padding = 3
149
149
format-full-padding = 3
150
150
151
151
ramp-capacity-0 = 
152
152
ramp-capacity-1 = 
153
153
ramp-capacity-2 = 
154
154
ramp-capacity-3 = 
155
155
ramp-capacity-4 = 
156
156
157
157
animation-charging-0 = 
158
158
animation-charging-1 = 
159
159
animation-charging-2 = 
160
160
animation-charging-3 = 
161
161
animation-charging-4 = 
162
162
animation-charging-framerate = 500
163
163
164
164
format-discharging-foreground = ${colors.xcolor15}
165
165
label-discharging-foreground = ${colors.xcolor15}
166
166
format-charging-foreground = ${colors.xcolor3}
167
167
label-charging-foreground = ${colors.xcolor3}
168
168
169
169
[module/backlight]
170
170
type = internal/xbacklight
171
171
172
172
card = intel_backlight
173
173
enable-scroll = true
174
174
175
175
format =  
176
176
label = %percentage%
177
177
format-foreground = ${colors.xcolor14}
178
178
179
179
180
180
ramp-0 = 🌕
181
181
ramp-1 = 🌔
182
182
ramp-2 = 🌓
183
183
ramp-3 = 🌒
184
184
ramp-4 = 🌑
185
185
186
186
187
187
[module/cpu]
188
188
type = internal/cpu
189
189
190
190
format-foreground = ${colors.xcolor13}
191
191
192
192
; Seconds to sleep between updates
193
193
; Default: 1
194
194
interval = 0.2
195
195
; Available tags:
196
196
;   
197
197
;   
198
198
;   
199
199
;   
200
200
format = 
201
201
202
202
; Available tokens:
203
203
;   %percentage% (default) - total cpu load
204
204
;   %percentage-cores% - load percentage for each core
205
205
;   %percentage-core[1-9]% - load percentage for specific core
206
206
label = %percentage%% CPU 
207
207
208
208
ramp-coreload-0 = ▁
209
209
ramp-coreload-1 = ▂
210
210
ramp-coreload-2 = ▃
211
211
ramp-coreload-3 = ▄
212
212
ramp-coreload-4 = ▅
213
213
ramp-coreload-5 = ▆
214
214
ramp-coreload-6 = ▇
215
215
ramp-coreload-7 = █
216
216
217
217
format-padding = 4
218
218
219
219
[module/network]
220
220
type = internal/network
221
221
interface = wlp2s0
222
222
interval = 0.5
223
223
; Available tags:
224
224
;    (default)
225
225
;   
226
226
format-connected = 
227
227
228
228
; Available tags:
229
229
;    (default)
230
230
format-disconnected = 
231
231
232
232
; Available tags:
233
233
;    (default)
234
234
;   
235
235
;   
236
236
format-packetloss =  
237
237
238
238
; Available tokens:
239
239
;   %ifname%    [wireless+wired]
240
240
;   %local_ip%  [wireless+wired]
241
241
;   %essid%     [wireless]
242
242
;   %signal%    [wireless]
243
243
;   %upspeed%   [wireless+wired]
244
244
;   %downspeed% [wireless+wired]
245
245
;   %linkspeed% [wired]
246
246
; Default: %ifname% %local_ip%
247
247
label-connected = %essid% %downspeed:9%
248
248
label-connected-foreground = ${colors.xcolor12}
249
249
250
250
; Available tokens:
251
251
;   %ifname%    [wireless+wired]
252
252
; Default: (none)
253
253
label-disconnected = Disconnected
254
254
label-disconnected-foreground = ${colors.xcolor3}
255
255
256
256
; Available tokens:
257
257
;   %ifname%    [wireless+wired]
258
258
;   %local_ip%  [wireless+wired]
259
259
;   %essid%     [wireless]
260
260
;   %signal%    [wireless]
261
261
;   %linkspeed% [wired]
262
262
; Default: (none)
263
263
;label-packetloss = %essid%
264
264
;label-packetloss-foreground = #eefafafa
265
265
266
266
267
267
; Only applies if  is used
268
268
animation-packetloss-0 = ⚠
269
269
animation-packetloss-0-foreground = #ffa64c
270
270
animation-packetloss-1 = 📶
271
271
animation-packetloss-1-foreground = #000000
272
272
; Framerate in milliseconds
273
273
animation-packetloss-framerate = 500
274
274
275
275
[module/volume]
276
276
type = internal/volume
277
277
278
278
format-volume =   
279
279
format-muted = 
280
280
label-volume = %percentage%
281
281
label-muted =   muted
282
282
label-muted-foreground = #aaa
283
283
format-volume-padding = 3
284
284
format-muted-padding = 3
285
285
format-volume-foreground = ${colors.xcolor14}
286
286
287
287
ramp-volume-0 = 
288
288
ramp-volume-1 = 
289
289
ramp-volume-2 = 
290
290
ramp-headphones-0 = 
291
291
292
292
;[module/spotify]
293
293
;type = custom/script
294
294
;
295
295
;exec = /home/gamehelp16/Documents/np
296
296
;interval = 1
297
297
;
298
298
;format = 
299
299
;format-background = #dd00c6e0
300
300
;format-foreground = #fff
301
301
;format-padding = 4
302
302
;
303
303
;label = %output%
304
304
305
305
[module/powermenu]
306
306
type = custom/menu
307
307
308
308
label-open =   
309
309
format-background = 
310
310
format-underline = 
311
311
label-open-background = ${colors.xcolor6}
312
312
label-open-underline = ${colors.xcolor14}
313
313
label-close = Cancel
314
314
label-close-background = ${colors.xcolor6}
315
315
label-close-underline = ${colors.xcolor14}
316
316
label-open-padding = 4 
317
317
label-close-padding = 3 
318
318
319
319
menu-0-0 = Reboot
320
320
menu-0-0-exec = menu-open-1
321
321
menu-0-1 = Power off
322
322
menu-0-1-exec = menu-open-2
323
323
menu-0-0-padding = 3
324
324
menu-0-1-padding = 3
325
325
326
326
menu-1-0 = reboot?  
327
327
menu-1-0-exec = sudo reboot
328
328
menu-1-0-padding = 3
329
329
330
330
menu-2-0 = power off?  
331
331
menu-2-0-exec = sudo poweroff
332
332
menu-2-0-padding = 3
333
333
334
334
[module/mpd]
335
335
type = internal/mpd
336
336
337
337
host = 127.0.0.1
338
338
port = 6600
339
339
password = 
340
340
341
341
; Seconds to sleep between progressbar/song timer sync
342
342
; Default: 1
343
343
interval = 2
344
344
345
345
format-online =    
346
346
347
347
; Available tokens:
348
348
;   %artist%
349
349
;   %album%
350
350
;   %date%
351
351
;   %title%
352
352
; Default: %artist% - %title%
353
353
label-song = %title%
354
354
format-online-padding = 3