guest@dotshare [~/groups/misc/misc] $ ls Tomorrow-Night-for-Polybar/ | cat

Tomorrow Night for Polybar (scrot, raw, dl) (+1 likes)

privatemajory Jul 16, 2017 (misc/misc)

SCROT

  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
;---------------------------
; Polybar config by Dolly ;)
;---------------------------

[colors]
background = #111111
background-alt = #1a1a1a
foreground = #C5C8C6
foreground-alt = #B2B2B2
red = #CC6666
yellow = #F0C674
green = #B3BB67
blue = #7FA0BC

[bar/bar]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
;offset-x = 1%
;offset-y = 1%
;radius = 6.0
fixed-center = false
bottom = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
;line-color = #f00
border-size = 4
border-color = ${colors.background} 
padding-left = 1
padding-right = 1
module-margin-left = 1
module-margin-right = 1
locale = fr_FR.UTF-8
font-0 = Oxygen Mono:size=9;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = FontAwesome:size=10.5;1
modules-left = clock networkmanager workspace window_count 
modules-center = term browser fx editor fm music xtitle
modules-right = volume xkeyboard mail battery wlan eth powermenu
tray-position = 
;tray-padding = 2
;tray-background = ${colors.background-alt}
;tray-transparent = true
;tray-offset-x = 
;tray-detached = false
;tray-maxsize = 24

[module/browser]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = uzbl-tabbed &

[module/fx]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = firefox &

[module/fm]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = gnome-terminal --geometry 110x24 -e ranger &
click-right = pcmanfm &

[module/term]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = gnome-terminal &

[module/editor]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = /opt/sublime_text/sublime_text &
click-right = geany &

;[module/chrome]
;type = custom/text
;content = 
;content-foreground = ${colors.foreground}
;click-left = google-chrome &

[module/music]
type = custom/text
content = 
content-foreground = ${colors.foreground}
click-left = gnome-terminal -e ncmpcpp &
click-right = audacious &

[module/workspace]
type = custom/script
interval = 1
label = %{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))":}%{A5:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)-1))":}%output% %{A}%{A}
exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
format = <label>
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}

[module/window_count]
type = custom/script
interval = 1
label = %{A1:rofi -width 30 -location 1 -xoffset 3 -show window:}%output% %{A}
exec = echo "$(($(lsw | wc -l)-1))"
format = <label>
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}

[module/xtitle]
type = custom/script
interval = 1
label = %output%
label-maxlen = 40
exec = echo "$(xtitle)"
format = <label>
format-background = ${colors.background-alt}
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
format-padding = 1

;[module/mpd]
;type = internal/mpd
;format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
;format-online-prefix = " "
;format-online-prefix-foreground = ${colors.foreground-alt}
;fomat-online-foreground = ${colors.blue}
;format-online-background = ${colors.background-alt}
;format-online-padding = 1
;icon-play = 
;icon-pause = 
;icon-stop = 
;icon-prev = 
;icon-next = 
;icon-play = 
;icon-pause = 
;icon-stop = 
;icon-prev = 
;icon-next = 
;icon-random = 
;label-song = %title%
;label-song-maxlen = 25
;label-song-ellipsis = true
;toggle-on-foreground = ${colors.foreground}
;toggle-off-foreground = ${colors.foreground-alt}

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label-layout = %layout%
label-indicator-padding = 1
label-indicator-margin = 1
label-indicator-foreground = ${colors.red}
label-indicator-background = ${colors.background} 

;[module/cpu]
;type = internal/cpu
;interval = 1
;format-prefix = " "
;format-prefix-foreground = ${colors.foreground-alt}
;label = %{A1:gnome-terminal --geometry 86x10 -e htop:}%percentage%%%{A}

;[module/memory]
;type = internal/memory
;interval = 1
;format-prefix = " "
;format-prefix-foreground = ${colors.foreground-alt}
;label = %{A1:gnome-terminal --geometry 86x10 -e htop:}%percentage_used%%%{A}

;[module/date]
;type = custom/script
;interval = 60
;exec = echo "$(date +%a) $(date +%d) $(date +%b)"
;format = <label>
;format-prefix = " "
;format-prefix-foreground = ${colors.foreground-alt}
;label = %{A1:gsimplecal &:}%output%%{A}

[module/clock]
type = custom/script
interval = 5
exec = echo "$(date +%R)"
format = <label>
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = %{A1:gsimplecal &:}%output%%{A}

[module/volume]
type = internal/volume
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
format-muted = <label-muted>
format-muted-foreground = ${colors.foreground-alt}
label-muted =  muet
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-foreground = ${colors.foreground-alt}


[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
format-charging = <animation-charging> <label-charging> 
format-discharging = <ramp-capacity> <label-discharging>
format-full-prefix = " "
format-full-prefix-foreground = ${colors.blue}
ramp-capacity-0 = 
ramp-capacity-0-foreground = ${colors.red}
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750

[module/networkmanager]
type = custom/text
content = net 
content-foreground = ${colors.foreground}
click-left = networkmanager_dmenu

[module/eth]
type = internal/network
interface = eth0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
format-disconnected = <label-disconnected>
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
label-connected-foreground = ${colors.foreground}
label-disconnected = 

[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
format-disconnected = <label-disconnected>
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
label-connected-foreground = ${colors.foreground}
label-disconnected = 

[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-font = 2
label-open-foreground = ${colors.red}
label-close = 
label-close-foreground = ${colors.foreground}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = 
menu-0-0-foreground = ${colors.blue}
menu-0-0-exec = menu-open-1
menu-0-1 = 
menu-0-1-foreground = ${colors.red}
menu-0-1-exec = menu-open-2
menu-1-0 = redémarrer?
menu-1-0-exec = /sbin/reboot
menu-1-1 = 
menu-1-1-exec = menu-open-0
menu-2-0 = 
menu-2-0-exec = menu-open-0
menu-2-1 = éteindre?
menu-2-1-exec = /sbin/poweroff

[module/mail]
type = custom/script
interval = 30
format = <label>
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
exec = ~/.config/polybar/mail
click-left = uzbl-browser https://mail.google.com &

[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over

;[global/wm]
;margin-top = 0
;margin-bottom = 0

CLICK TO VIEW

x

Notes

Polybar config using colors from Tomorrow Night scheme. This config uses FontAwesome for glyphicons.

Comments

Dobbie03 said about 6 years ago

Awesome polybar, using it now.

edited about 6 years ago