config (11646B)
1 ;========================================================== 2 ; 3 ; 4 ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ 5 ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ 6 ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ 7 ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ 8 ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ 9 ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ 10 ; 11 ; 12 ; To learn more about how to configure Polybar 13 ; go to https://github.com/jaagr/polybar 14 ; 15 ; The README contains alot of information 16 ; 17 ;========================================================== 18 19 [colors] 20 ;background = ${xrdb:color0:#222} 21 background = #222 22 background-alt = #444 23 ;foreground = ${xrdb:color7:#222} 24 foreground = #dfdfdf 25 foreground-alt = #555 26 primary = #ffb52a 27 secondary = #e60053 28 alert = #bd2c40 29 30 ;Xterm colors 31 black = #000000 32 maroon = #800000 33 green = #008000 34 olive = #808000 35 navy = #000080 36 purple = #800080 37 teal = #008080 38 silver = #c0c0c0 39 grey = #808080 40 red = #ff0000 41 lime = #00ff00 42 yellow = #ffff00 43 blue = #0000ff 44 fuchsia = #ff00ff 45 aqua = #00ffff 46 white = #ffffff 47 48 [bar/mybar] 49 monitor = ${env:MONITOR:eDP1} 50 ;monitor = ${env:MONITOR:HDMI2} 51 width = 100% 52 height = 20 53 ;offset-x = 1% 54 ;offset-y = 1% 55 radius = 0.0 56 fixed-center = false 57 bottom = true 58 59 enable-ipc = true 60 61 background = ${colors.background} 62 foreground = ${colors.foreground} 63 64 line-size = 0 65 line-color = #f00 66 67 border-size = 0 68 border-color = #00000000 69 70 padding-left = 0 71 padding-right = 2 72 73 module-margin-left = 1 74 module-margin-right = 1 75 76 font-0 = fixed:pixelsize=10;2 77 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 78 font-2 = siji:pixelsize=10;1 79 font-3 = FontAwesome:size=8;2 80 font-4 = NotoColorEmoji:fontformat=truetype:scale=12:antialias=false;2 81 font-5 = DejaVuSansMono\ Nerd\ Font\ Mono:fontformat=truetype:scale=12:antialias=false;2 82 83 84 modules-left = bspwm 85 ;modules-center = xwindow 86 modules-right = wlan eth updates2 filesystem xbacklight pulseaudio cpu temperature battery date powermenu 87 88 tray-position = right 89 tray-padding = 2 90 tray-background = ${colors.background} 91 tray-detached = false 92 tray-maxsize = 16 93 94 95 wm-restack = bspwm 96 ;wm-restack = i3 97 98 ;override-redirect = true 99 100 ;scroll-up = bspwm-desknext 101 ;scroll-down = bspwm-deskprev 102 103 ;scroll-up = i3wm-wsnext 104 ;scroll-down = i3wm-wsprev 105 106 cursor-click = pointer 107 cursor-scroll = ns-resize 108 109 [module/xwindow] 110 type = internal/xwindow 111 label = %title:0:30:...% 112 113 [module/xkeyboard] 114 type = internal/xkeyboard 115 blacklist-0 = num lock 116 117 format-prefix = " " 118 format-prefix-foreground = ${colors.foreground-alt} 119 format-prefix-underline = ${colors.secondary} 120 121 label-layout = %layout% 122 label-layout-underline = ${colors.secondary} 123 124 label-indicator-padding = 2 125 label-indicator-margin = 1 126 label-indicator-background = ${colors.secondary} 127 label-indicator-underline = ${colors.secondary} 128 129 [module/filesystem] 130 type = internal/fs 131 interval = 25 132 133 mount-0 = / 134 135 ;label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% 136 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %free% 137 label-unmounted = %mountpoint% not mounted 138 label-unmounted-foreground = ${colors.foreground-alt} 139 140 [module/bspwm] 141 type = internal/bspwm 142 143 ws-icon-0 = I; 144 ws-icon-1 = II; 145 ;ws-icon-2 = III;♜ 146 ;ws-icon-3 = IV;♝ 147 ;ws-icon-4 = V;♞ 148 ws-icon-default = 149 150 label-focused = [%index%] 151 label-focused-background = ${colors.background-alt} 152 label-focused-underline= ${colors.primary} 153 label-focused-padding = 1 154 155 label-occupied = %index% 156 label-occupied-padding = 2 157 158 label-urgent = %index%! 159 label-urgent-background = ${colors.alert} 160 label-urgent-padding = 2 161 162 label-empty = %index% 163 label-empty-foreground = ${colors.foreground-alt} 164 label-empty-padding = 2 165 166 ; Separator in between workspaces 167 ; label-separator = | 168 169 [module/mpd] 170 type = internal/mpd 171 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> 172 173 icon-prev = 174 icon-stop = 175 icon-play = 176 icon-pause = 177 icon-next = 178 179 label-song-maxlen = 25 180 label-song-ellipsis = true 181 182 [module/xbacklight] 183 type = internal/xbacklight 184 185 format = <ramp><label> 186 label = %percentage%% 187 188 ramp-0 = 🌕 189 ramp-1 = 🌔 190 ramp-2 = 🌓 191 ramp-3 = 🌒 192 ramp-4 = 🌑 193 194 bar-width = 10 195 bar-indicator = | 196 bar-indicator-foreground = #fff 197 bar-indicator-font = 2 198 bar-fill = ─ 199 bar-fill-font = 2 200 bar-fill-foreground = #9f78e1 201 bar-empty = ─ 202 bar-empty-font = 2 203 bar-empty-foreground = ${colors.foreground-alt} 204 205 [module/backlight-acpi] 206 inherit = module/xbacklight 207 type = internal/backlight 208 card = intel_backlight 209 210 [module/cpu] 211 type = internal/cpu 212 interval = 2 213 format-prefix = " " 214 format-prefix-foreground = ${colors.foreground} 215 format-underline = #f90000 216 label = %percentage:2%% 217 218 [module/memory] 219 type = internal/memory 220 interval = 2 221 format-prefix = " " 222 format-prefix-foreground = ${colors.foreground} 223 format-underline = #4bffdc 224 label = %gb_used% 225 226 [module/wlan] 227 type = internal/network 228 interface = wlp61s0 229 interval = 3.0 230 231 format-connected = <ramp-signal> <label-connected> 232 format-connected-underline = #9f78e1 233 label-connected = %essid% | %local_ip% | 📥:%downspeed% 📤:%upspeed% 234 235 format-disconnected = 236 ;format-disconnected = <label-disconnected> 237 ;format-disconnected-underline = ${self.format-connected-underline} 238 ;label-disconnected = %ifname% disconnected 239 ;label-disconnected-foreground = ${colors.foreground-alt} 240 241 ramp-signal-0 = 242 ramp-signal-1 = 243 ramp-signal-2 = 244 ramp-signal-3 = 245 ramp-signal-4 = 246 ;ramp-signal-foreground = ${colors.foreground} 247 ramp-signal-foreground = ${colors.lime} 248 249 [module/eth] 250 type = internal/network 251 interface = enp0s31f6 252 interval = 3.0 253 254 format-connected-underline = #55aa55 255 format-connected-prefix = " " 256 format-connected-prefix-foreground = ${colors.lime} 257 label-connected = %local_ip% | 📥:%downspeed% 📤:%upspeed% 258 259 format-disconnected = 260 ;format-disconnected = <label-disconnected> 261 ;format-disconnected-underline = ${self.format-connected-underline} 262 ;label-disconnected = %ifname% disconnected 263 ;label-disconnected-foreground = ${colors.foreground-alt} 264 265 [module/date] 266 type = internal/date 267 interval = 5 268 269 date = 270 date-alt = " %Y-%m-%d" 271 272 time = %H:%M 273 time-alt = %H:%M:%S 274 275 ;format-prefix = 276 ;format-prefix-foreground = ${colors.foreground-alt} 277 format-underline = #0a6cf5 278 279 label = %date% %time% 280 281 [module/pulseaudio] 282 type = internal/pulseaudio 283 284 format-volume = <label-volume> 285 ; <bar-volume> 286 label-volume = 墳 %percentage%% 287 label-volume-foreground = ${root.foreground} 288 289 label-muted = 婢 %percentage%% 290 label-muted-foreground = #666 291 292 bar-volume-width = 10 293 bar-volume-foreground-0 = #55aa55 294 bar-volume-foreground-1 = #55aa55 295 bar-volume-foreground-2 = #55aa55 296 bar-volume-foreground-3 = #55aa55 297 bar-volume-foreground-4 = #55aa55 298 bar-volume-foreground-5 = #f5a70a 299 bar-volume-foreground-6 = #ff5555 300 bar-volume-gradient = false 301 bar-volume-indicator = | 302 bar-volume-indicator-font = 2 303 bar-volume-fill = ─ 304 bar-volume-fill-font = 2 305 bar-volume-empty = ─ 306 bar-volume-empty-font = 2 307 bar-volume-empty-foreground = ${colors.foreground-alt} 308 309 [module/alsa] 310 type = internal/alsa 311 312 format-volume = <label-volume> <bar-volume> 313 label-volume = VOL 314 label-volume-foreground = ${root.foreground} 315 316 format-muted-prefix = "婢 " 317 format-muted-foreground = ${colors.foreground-alt} 318 label-muted = sound muted 319 320 bar-volume-width = 10 321 bar-volume-foreground-0 = #55aa55 322 bar-volume-foreground-1 = #55aa55 323 bar-volume-foreground-2 = #55aa55 324 bar-volume-foreground-3 = #55aa55 325 bar-volume-foreground-4 = #55aa55 326 bar-volume-foreground-5 = #f5a70a 327 bar-volume-foreground-6 = #ff5555 328 bar-volume-gradient = false 329 bar-volume-indicator = | 330 bar-volume-indicator-font = 2 331 bar-volume-fill = ─ 332 bar-volume-fill-font = 2 333 bar-volume-empty = ─ 334 bar-volume-empty-font = 2 335 bar-volume-empty-foreground = ${colors.foreground-alt} 336 337 [module/battery] 338 type = internal/battery 339 battery = BAT0 340 adapter = AC 341 ;adapter = ACAD 342 full-at = 93 343 344 ;<animation-charging> 345 346 format-charging = <label-charging> 347 format-charging-underline = #ffb52a 348 349 format-discharging = <ramp-capacity> <label-discharging> 350 format-discharging-underline = ${self.format-charging-underline} 351 352 format-charging-prefix = " " 353 format-charging-prefix-foreground = ${colors.lime} 354 format-full-prefix = " " 355 format-full-prefix-foreground = ${colors.lime} 356 format-full-underline = ${self.format-charging-underline} 357 358 ramp-capacity-0 = 359 ramp-capacity-1 = 360 ramp-capacity-2 = 361 ramp-capacity-3 = 362 ramp-capacity-4 = 363 ramp-capacity-5 = 364 ramp-capacity-6 = 365 ramp-capacity-7 = 366 ramp-capacity-8 = 367 ramp-capacity-9 = 368 ramp-capacity-0-foreground = ${colors.secondary} 369 ramp-capacity-1-foreground = ${colors.secondary} 370 ramp-capacity-2-foreground = ${colors.secondary} 371 ramp-capacity-3-foreground = ${colors.primary} 372 ramp-capacity-4-foreground = ${colors.primary} 373 ramp-capacity-5-foreground = ${colors.primary} 374 ramp-capacity-6-foreground = ${colors.primary} 375 ramp-capacity-7-foreground = ${colors.lime} 376 ramp-capacity-8-foreground = ${colors.lime} 377 ramp-capacity-9-foreground = ${colors.lime} 378 379 animation-charging-0 = 380 animation-charging-1 = 381 animation-charging-2 = 382 animation-charging-foreground = ${colors.foreground} 383 animation-charging-framerate = 750 384 385 animation-discharging-0 = 386 animation-discharging-1 = 387 animation-discharging-2 = 388 animation-discharging-foreground = ${colors.foreground} 389 animation-discharging-framerate = 750 390 391 [module/temperature] 392 type = internal/temperature 393 thermal-zone = 0 394 warn-temperature = 60 395 396 format = <ramp> <label> 397 format-underline = #f50a4d 398 format-warn = <ramp> <label-warn> 399 format-warn-underline = ${self.format-underline} 400 401 label = "%temperature-c% " 402 label-warn = "%temperature-c% " 403 label-warn-foreground = ${colors.secondary} 404 405 ramp-0 = 406 ramp-1 = 407 ramp-2 = 408 ramp-foreground = ${colors.foreground} 409 410 [module/powermenu] 411 type = custom/menu 412 413 expand-right = true 414 415 format-spacing = 1 416 417 label-open = 418 label-open-foreground = ${colors.secondary} 419 label-close = cancel 420 label-close-foreground = ${colors.secondary} 421 label-separator = | 422 label-separator-foreground = ${colors.foreground-alt} 423 424 menu-0-0 = reboot 425 menu-0-0-exec = menu-open-1 426 menu-0-1 = power off 427 menu-0-1-exec = menu-open-2 428 429 menu-1-0 = cancel 430 menu-1-0-exec = menu-open-0 431 menu-1-1 = reboot 432 menu-1-1-exec = sudo reboot 433 434 menu-2-0 = power off 435 menu-2-0-exec = sudo shutdown now 436 menu-2-1 = cancel 437 menu-2-1-exec = menu-open-0 438 439 [module/updates] 440 type = custom/script 441 #exec = ~/Scripts/pacmanupdates.sh 442 exec = sleep 30; ~/Scripts/pacmanupdates.sh 443 interval = 3600 444 445 format = : <label> 446 format-background = ${colors.background} 447 format-foreground = ${colors.foreground} 448 format-prefix = " " 449 format-prefix-foreground = ${colors.teal} 450 451 [module/updates2] 452 type = custom/ipc 453 hook-0 = echo "📦" 454 hook-1 = "~/Scripts/pacmanupdates.sh" 455 hook-2 = "~/Scripts/pacmanupdates.sh -a" 456 initial = 1 457 click-left = polybar-msg -p %pid% hook updates2 2 458 click-right = polybar-msg -p %pid% hook updates2 3 459 double-click-left = polybar-msg -p %pid% hook updates2 1 460 461 [settings] 462 screenchange-reload = true 463 ;compositing-background = xor 464 ;compositing-background = screen 465 ;compositing-foreground = source 466 ;compositing-border = over 467 ;pseudo-transparency = false 468 469 [global/wm] 470 margin-top = 0 471 margin-bottom = 0 472 473 ; vim:ft=dosini