guest@dotshare [~/groups/wms/i3] $ ls i3-polybar-Arch/ | cat

i3 + polybar @Arch (scrot) (+1 likes)

KabirGandhiok Feb 17, 2018 (wms/i3)

i3_config(raw, dl)

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
# This file has been auto-generated by i3-config-wizard(1).

# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
#set $mod Mod1

set $left h
set $down j
set $up k
set $right l
set $flash ~/.config/i3/scripts/flash.sh
#setting up lock-screen
set $Locker i3lock --color "#000000" && sleep 1

#set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
set $mode_system System: --L  --E  --S  --H  --R  --P 
mode "$mode_system" {
	bindsym l exec --no-startup-id $Locker, mode "default"
	bindsym e exec --no-startup-id i3-msg exit, mode "default"
	bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
	bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
	bindsym r exec --no-startup-id systemctl reboot, mode "default"
	bindsym p exec --no-startup-id systemctl poweroff -i, mode "default"

	#back to normal: Enter or Escape
	bindsym Return mode "default"
	bindsym Escape mode "default"
}
bindsym $mod+Delete mode "$mode_system"

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Iosevka Term 13

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:
# font -mic-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec urxvt

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run -fn "iosevka term-13" -nb '#2F343F' -nf '#F3F4F5' -sb '#005252' -sf '#F3F4F5' -b

# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
focus_follows_mouse no

# move focused window
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
workspace_auto_back_and_forth yes

# split in horizontal orientation
bindsym $mod+g split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# toggle border
# bindsym $mod+t border normal
# bindsym $mod+y border pixel

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
bindsym $mod+q focus child

# move focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad

# show the scratchpad window
# use mod+mouse to move or regular keybindings
bindsym $mod+minus scratchpad show

# flashing window
bindsym $mod+BackSpace exec --no-startup-id $flash
bindsym $mod+grave exec --no-startup-id $flash

# set $workspace1 "1:Linux"
# set $workspace2 "2:Editor"
set $workspace3 "3"
# set $workspace4 "4"
# set $workspace5 "5:VideoRec"
# set $workspace6 "6:Music"
# set $workspace7 "7:Games"
# set $workspace8 "8:FileManager"
# set $workspace9 "9:Social"
set $workspace10 "10"

# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace $workspace10
bindsym $mod+Tab workspace next

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace $workspace10

# assign [class="Firefox"] $workspace3
# assign [class="Vivaldi-stable"] $workspace3
assign [class="Chromium"] $workspace3
# assign [class="Simplescreenrecorder"] $workspace5
# assign [class="vokoscreen"] $workspace5
assign [class="qBittorrent"] $workspace10
# assign [class="yakyak"] $workspace9

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym $down resize shrink height 10 px or 10 ppt
        bindsym $up resize grow height 10 px or 10 ppt
        bindsym $left resize shrink width 05 px or 05 ppt
        bindsym $right resize grow width 05 px or 05 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

set $bg-color #2F343F
set $inactive-bg-color #2F343F
set $text-color #F3F4F5
set $inactive-text-color #676E7D
set $urgent-bg-color #E53935
set $bg-color2 #262626
set $inactive-bg-color2 #262626
set $text-color2 #D5C4A1
set $inactive-text-color2 #4E4E4E
set $urgent-bg-color2 	#E53935
# set $bg-color3 #A800FF
set $bg-color3 #005252
set $border #F3F4F5
set $nav_color #524A42
set $ind_color #7D715C

# Class                      border  backgr   text  indicator child_border
client.focused		$bg-color2 $bg-color2 $text-color2 $ind_color
client.unfocused	$nav_color $nav_color $inactive-bg-color2 $ind_color
client.focused_inactive	$nav_color $nav_color $inactive-bg-color2 $ind_color
client.urgent	$urgent-bg-color2 $urgent-bg-color2 $text-color2 $ind_color
#
client.background           #111111

#gaps

set $default_gaps_inner 25
set $default_gaps_outer 15
gaps inner $default_gaps_inner
gaps outer $default_gaps_outer

workspace 2 gaps inner 10
workspace 2 gaps outer -4
# smart_gaps on
# smart_borders on
hide_edge_borders both

# window borders
new_window none
# for_window [class="yakyak"] border pixel 2
# for_window [class="Vivaldi-stable"] border pixel 2
# for_window [class="Firefox"] border pixel 2
# for_window [class="Chromium"] border pixel 2
# for_window [class="qBittorrent"] border pixel 2
# for_window [class="Franz"] border pixel 2
# for_window [class="vokoscreen"] border pixel 2
# for_window [class="Gcolor2"] border pixel 2
for_window [class="Gcolor2"] floating disable

set $truemute amixer sset Master mute
set $mute amixer sset Master toggle
set $inc amixer sset Master 3%+
set $dec amixer sset Master 3%-
set $music_player urxvt -e ncmpcpp
set $truepause mpv pause
set $pause mpc toggle
set $stop mpc stop
set $play mpc play
set $next mpc next
set $prev mpc prev
set $vol_inc mpc volume +3
set $vol_dec mpc volume -3

# bindsym $mod+shift+Delete exec --no-startup-id $truemute ; $truepause

bindsym $mod+shift+x exec --no-startup-id i3lock --color "#000000"

bindsym XF86AudioMute exec --no-startup-id $mute
bindsym XF86AudioRaiseVolume exec --no-startup-id $inc
bindsym XF86AudioLowerVolume exec --no-startup-id $dec
bindsym $mod+m exec --no-startup-id $music_player
bindsym $mod+Shift+s exec --no-startup-id $stop
bindsym $mod+Shift+p exec --no-startup-id $play
bindsym $mod+p exec --no-startup-id $pause
bindsym $mod+bracketleft exec --no-startup-id $next
bindsym $mod+bracketright exec --no-startup-id $prev
bindsym $mod+Shift+plus exec --no-startup-id $vol_inc
bindsym $mod+Shift+BackSpace exec --no-startup-id $vol_dec
bindsym --release $mod+x exec scrot -s
bindsym --release $mod+Shift+t exec --no-startup-id scrot -t 20 -d 5
exec_always --no-startup-id ~/.config/polybar/launch.sh

CLICK TO VIEW

x

Polybar(raw, dl)

  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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
;=====================================================
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;
;=====================================================
[colors]
;background = ${xrdb:color0:#222}
bg_trans = #dd000000
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40

[bar/top]
; monitor = ${env:MONITOR:HDMI-1}
monitor = DP-1
width = 100%
height = 30
;offset-x = 1%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = false

;background = ${colors.background}
background = ${colors.bg_trans}
foreground = ${colors.foreground}

line-size = 3
line-color = #f00

border-size = 0
border-color = #00000000

padding-left = 0
padding-right = 2

module-margin-left = 1
module-margin-right = 2

font-0 = Iosevka Term:weight=regular:pixelsize=11;2
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = Iosevka Term:weight=regular:pixelsize=11;1
font-3 = Iosevka Term:weight=bold:pixelsize=11;1
font-4 = fontawesome:weight=regular:pixelsize=11;1

modules-left = i3
modules-center = mpd
modules-right = volume memory

; tray-position = right
; tray-padding = 0
;tray-transparent = true
; tray-background = #aa000000

;wm-restack = bspwm
;wm-restack = i3

;override-redirect = true

;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev

scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev

cursor-click = pointer
cursor-scroll = ns-resize

[bar/bottom]

monitor = DP-1
width = 100%
height = 30
;offset-x = 1%
;offset-y = 1%
radius = 0.0
fixed-center = true
bottom = true

;background = ${colors.background}
background = ${colors.bg_trans}
foreground = ${colors.foreground}

line-size = 3
line-color = #f00

border-size = 0
border-color = #00000000

padding-left = 0
padding-right = 2

module-margin-left = 1
module-margin-right = 2

font-0 = Iosevka Term:weight=regular:pixelsize=11;2
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = Iosevka Term:weight=regular:pixelsize=11;1
font-3 = Iosevka Term:weight=bold:pixelsize=11;1
font-4 = FontAwesome:weight=regular:pixelsize=11;1

modules-left = xwindow
modules-center = date
modules-right = filesystem uptime temp_core cpu_load eth xkeyboard usb-mount

tray-position = right
tray-padding = 1
tray-detached = false
;tray-background = ${root.background}
tray-transparent = false
tray-background = #aa000000

;wm-restack = bspwm
;wm-restack = i3

;override-redirect = true

;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev

;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev

;cursor-click = pointer
;cursor-scroll = ns-resize


[module/uptime]
type = custom/script
exec = ~/.config/polybar/scripts/uptime.sh
interval = 30
format-underline = #ff6347

[module/xwindow]
type = internal/xwindow
label = %title:0:50:...%
label-padding = 2

[module/xkeyboard]
type = internal/xkeyboard
;blacklist-0 = num lock
format = <label-layout> <label-indicator>
format-spacing = 0

;format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}

label-layout = %layout%
label-indicator = %name%
label-layout-underline = ${colors.secondary}

label-indicator-padding = 1
;label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}

[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /
mount-1 = /home

label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}

[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false

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

label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}

; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}

; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}

; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}

[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
interval = 2
;format-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>
format-online = <label-song>  <label-time>  <bar-progress>  <icon-next>  <icon-seekf>  <icon-stop>  <toggle>  <icon-seekb>  <icon-prev>
format-offline = <label-offline>

icon-play =
icon-play-foreground = #aaff77
icon-pause =
icon-stop =
icon-prev =
icon-next =
icon-seekb =
icon-seekf =
;icon-random =
;icon-repeat =
icon-repeatone = 
;icon-prev =
;icon-stop =
;icon-play =
;icon-pause =
;icon-next =

icon-prev-font = 4
icon-stop-font = 4
label-offline = mpd if offline
label-song = %artist% : %album% - %title%
label-song-maxlen = 60
label-song-ellipsis = true

toggle-on-foreground = #ff
toggle-off-foreground = #55

bar-progress-width = 50
bar-progress-foreground-0 = #55aa55
bar-progress-foreground-1 = #55aa55
bar-progress-foreground-2 = #55aa55
bar-progress-foreground-3 = #55aa55
bar-progress-foreground-4 = #f5a70a
bar-progress-foreground-5 = #f5a70a
bar-progress-foreground-6 = #ff5555
bar-progress-gradient = true
bar-progress-indicator = |
bar-progress-indicator-font = 0
bar-progress-font = 2
bar-progress-indicator-foreground = #ff
bar-progress-fill = |
bar-progress-fill-font = 2
bar-progress-empty = -
bar-progress-empty-font = 2
bar-progress-empty-foreground = ${colors.foreground-alt}

[module/cpu]
type = internal/cpu
interval = 2
;format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage:2%%

[module/memory]
type = internal/memory
interval = 2
format = <label> <bar-used>
label = RAM
label-foreground = ${root.foreground}

bar-used-width = 35
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #55aa55
bar-used-foreground-2 = #55aa55
bar-used-foreground-3 = #55aa55
bar-used-foreground-4 = #f5a70a
bar-used-foreground-5 = #f5a70a
bar-used-foreground-6 = #ff5555
bar-used-indicator = |
bar-used-indicator-font = 0
bar-used-gradient = true
bar-used-font = 2
bar-used-indicator-foreground = #ff
bar-used-fill = |
bar-used-fill-font = 2
bar-used-empty = -
bar-used-empty-font = 2
bar-used-empty-foreground = ${colors.foreground-alt}
;bar-used-empty-foreground = #444444

[module/eth]
type = internal/network
interface = eno1
interval = 1.0

format-connected-underline = #55aa55
;format-connected-prefix =
;format-connected-prefix =
;format-connected-prefix-font = 4
;format-connected-prefix-foreground = ${colors.foreground-alt}
; label-connected = %ifname%
label-connected = %local_ip% %upspeed% %downspeed%
label-connected-foreground = #eefafa
label-disconnected-foreground = #66ffff

format-disconnected = not connected
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

[module/date]
type = internal/date
interval = 5

date = "%a %b,%d"
date-alt = "%Y-%m-%d"

time = %H:%M
time-alt = %H:%M:%S

# format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5

label = %date% %time%

[module/volume]
type = internal/alsa

format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}

# format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted

bar-volume-width = 35
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #f5a70a
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = true
bar-volume-indicator = |
bar-volume-indicator-font = 0
bar-volume-fill = |
bar-volume-fill-font = 2
bar-volume-empty = -
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}

[module/usb-mount]
type = custom/script
exec = ~/.config/polybar/scripts/usb-mount.sh
interval = 5
click-left = ~/.config/polybar/scripts/usb-mount.sh --mount
click-right = ~/.config/polybar/scripts/usb-mount.sh --unmount
format-underline = #ff69b4

[module/cpu_load]
type = custom/script
exec = ~/.config/polybar/scripts/cpuloadavg.sh
format-underline = #f50a4d

interval = 5

[module/powermenu]
type = custom/menu
; expand-right = true

format-spacing = 1

label-open = " "
label-open-font = 0
label-open-background = ${colors.background}
label-open-foreground = ${colors.secondary}
label-close = " Cancel"
label-close-font = 0
label-close-background = ${colors.background}
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}

menu-0-0 = Reboot
menu-0-0-font = 0
menu-0-0-exec = menu-open-1
menu-0-1 = Power Off
menu-0-1-font = 0
menu-0-1-exec = menu-open-2
menu-0-2 = Hibernate
menu-0-2-font = 0
menu-0-2-exec = menu-open-3
menu-0-3 = Lock
menu-0-3-font = 0
menu-0-3-exec = menu-open-4
menu-0-4 = Suspend
menu-0-4-font = 0
menu-0-4-exec = menu-open-5

menu-1-0 = Reboot
menu-1-0-font = 0
menu-1-0-exec = systemctl reboot
menu-1-1 = Cancel
menu-1-1-font = 0
menu-1-1-exec = menu-open-0

menu-2-0 = Power Off
menu-2-0-font = 0
menu-2-0-exec = systemctl poweroff
menu-2-1 = Cancel
menu-2-1-font = 0
menu-2-1-exec = menu-open-0

menu-3-0 = Hibernate
menu-3-0-font = 0
menu-3-0-exec = i3lock --color "#000000" && sleep 1 && systemctl hibernate
menu-3-1 = Cancel
menu-3-1-font = 0
menu-3-1-exec = menu-open-0

menu-4-0 = Lock
menu-4-0-font = 0
menu-4-0-exec = i3lock --color "#000000" && sleep 1
menu-4-1 = Cancel
menu-4-1-font = 0
menu-4-1-exec = menu-open-0

menu-5-0 = Suspend
menu-5-0-font = 0
menu-5-0-exec = systemctl suspend && i3lock --color "#000000" && sleep 1
menu-5-1 = Cancel
menu-5-1-font = 0
menu-5-1-exec = menu-open-0

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

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

x

launch.sh(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/usr/bin/env sh

killall -q polybar


while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done


polybar top &
polybar bottom
 

x

Xresources(raw, dl)

  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
URxvt.imLocale: en_US.UTF-8
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintfull
URxvt.depth: 32
URxvt.font: xft:Iosevka Term:Regular:size=12,xft:Iosevka Term\ For\ Powerline:size=12:antialias=true

URxvt.letterSpace: 0
URxvt.scrollStyle: rxvt
URxvt.scrollBar: false

URxvt.cursorColor: #d7af87
URxvt.cursor_foreground: #dcdccc
URxvt.foreground: #ebdbb2
URxvt.foreground_bold: #ebdbb2
URxvt.background: #000000
URxvt.highlight: #2f2f2f

!Urxvt.foreground: #BCBCBC
!URxvt.foreground_bold: #BCBCBC
!URxvt.background: [90]#262626
!URxvt.color0: #1C1C1C

! color scheme 1
!URxvt.color0: #1C1C1C
!URxvt.color8: #444444
!URxvt.color1: #AF5F5F
!URxvt.color9: #FF8700
!URxvt.color2: #5F875F
!URxvt.color10: #87AF87
!URxvt.color3: #87875F
!URxvt.color11: #FFFFAF
!URxvt.color4: #5F87AF
!URxvt.color12: #8FAFD7
!URxvt.color5: #5F5F87
!URxvt.color13: #8787AF
!URxvt.color6: #5F8787
!URxvt.color14: #5FAFAF
!URxvt.color7: #6C6C6C
!URxvt.color15: #FFFFFF
!URxvt.color0: #282828

! color scheme 2
!URxvt.color8: #928374
!URxvt.color1: #cc241d
!URxvt.color9: #fb4934
!URxvt.color2: #98971a
!URxvt.color10: #b8bb26
!URxvt.color3: #d79921
!URxvt.color11: #fabd2f
!URxvt.color4: #458588
!URxvt.color12: #83a598
!URxvt.color5: #b16286
!URxvt.color13: #d3869b
!URxvt.color6: #689d6a
!URxvt.color14: #8ec07c
!URxvt.color7: #a89984
!URxvt.color15: #ebdbb2
!
! Tango color scheme
URxvt.color0:  #2E3436
URxvt.color1:  #a40000
URxvt.color2:  #4E9A06
URxvt.color3:  #C4A000
URxvt.color4:  #3465A4
URxvt.color5:  #75507B
URxvt.color6:  #ce5c00
URxvt.color7:  #babdb9
URxvt.color8:  #555753
URxvt.color9:  #EF2929
URxvt.color10: #8AE234
URxvt.color11: #FCE94F
URxvt.color12: #729FCF
URxvt.color13: #AD7FA8
URxvt.color14: #fcaf3e
URxvt.color15: #EEEEEC

! 256 colors
URxvt.color24:  #076678
URxvt.color66:  #427b58
URxvt.color88:  #9d0006
URxvt.color96:  #8f3f71
URxvt.color100: #79740e
URxvt.color108: #8ec07c
URxvt.color109: #83a598
URxvt.color130: #af3a03
URxvt.color136: #b57614
URxvt.color142: #b8bb26
URxvt.color167: #fb4934
URxvt.color175: #d3869b
URxvt.color208: #fe8019
URxvt.color214: #fabd2f
URxvt.color223: #ebdbb2
URxvt.color228: #f2e5bc
URxvt.color229: #fbf1c7
URxvt.color230: #f9f5d7
URxvt.color234: #1d2021
URxvt.color235: #282828
URxvt.color236: #32302f
URxvt.color237: #3c3836
URxvt.color239: #504945
URxvt.color241: #665c54
URxvt.color243: #7c6f64
URxvt.color244: #928374
URxvt.color245: #928374
URxvt.color246: #a89984
URxvt.color248: #bdae93
URxvt.color250: #d5c4a1
 

x

flash.sh(raw, dl)

1
2
3
4
5
6
7
8
9
#!/bin/sh

transset-df -a -m 0
sleep .1
transset-df -a -x 1
sleep .1
transset-df -a -m 0
sleep .1
transset-df -a -x 1
 

x