polybar.conf (10205B)
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/polybar/polybar 14 ; 15 ; The README contains a lot of information 16 ; 17 ;========================================================== 18 19 [colors] 20 background = ${xrdb:background} 21 ;background = #222 22 background-alt = #444 23 foreground = ${xrdb:foreground} 24 ;foreground = #dfdfdf 25 foreground-alt = #555 26 primary = #ffb52a 27 secondary = #e60053 28 alert = #bd2c40 29 30 ; Bars 31 [bar/base] 32 font-0 = HackNerdFont:size=10:antialias=true;3 33 34 height = 25 35 radius = 15 36 37 background = ${colors.background} 38 39 offset-y = 5 40 41 wm-restack = bspwm 42 43 [bar/wm_left] 44 inherit = bar/base 45 46 monitor = ${env:MONITOR:HDMI-A-0} 47 48 offset-x = 5 49 50 width = 22% 51 52 modules-center = bspwm 53 54 [bar/wm_right] 55 inherit = bar/base 56 57 monitor = ${env:MONITOR:DisplayPort-2} 58 59 offset-x = 5 60 61 width = 22% 62 63 modules-center = bspwm 64 65 [bar/time] 66 inherit = bar/base 67 68 monitor = ${env:MONITOR:DisplayPort-2} 69 70 offset-x = 91.5% 71 72 width = 8% 73 74 modules-center = date powermenu 75 76 tray-position = right 77 tray-padding = 2 78 79 ; Modules 80 81 [module/xwindow] 82 type = internal/xwindow 83 label = %title:0:30:...% 84 85 [module/xkeyboard] 86 type = internal/xkeyboard 87 blacklist-0 = num lock 88 89 format-prefix = " " 90 format-prefix-foreground = ${colors.foreground-alt} 91 format-prefix-underline = ${colors.secondary} 92 93 label-layout = %layout% 94 label-layout-underline = ${colors.secondary} 95 96 label-indicator-padding = 2 97 label-indicator-margin = 1 98 label-indicator-background = ${colors.secondary} 99 label-indicator-underline = ${colors.secondary} 100 101 [module/filesystem] 102 type = internal/fs 103 interval = 25 104 105 mount-0 = / 106 107 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% 108 label-unmounted = %mountpoint% not mounted 109 label-unmounted-foreground = ${colors.foreground-alt} 110 111 [module/bspwm] 112 type = internal/bspwm 113 114 ;label-focused = %index% 115 label-focused = 116 label-focused-background = ${colors.background-alt} 117 label-focused-underline= ${colors.primary} 118 label-focused-padding = 2 119 120 ;label-occupied = %index% 121 label-occupied = 122 label-occupied-padding = 2 123 124 ;label-urgent = %index%! 125 label-urgent = 126 label-urgent-background = ${colors.alert} 127 label-urgent-padding = 2 128 129 ;label-empty = %index% 130 label-empty = 131 label-empty-foreground = ${colors.foreground-alt} 132 label-empty-padding = 2 133 134 ; Separator in between workspaces 135 ; label-separator = | 136 137 [module/i3] 138 type = internal/i3 139 format = <label-state> <label-mode> 140 index-sort = true 141 wrapping-scroll = false 142 143 ; Only show workspaces on the same output as the bar 144 ;pin-workspaces = true 145 146 label-mode-padding = 2 147 label-mode-foreground = #000 148 label-mode-background = ${colors.primary} 149 150 ; focused = Active workspace on focused monitor 151 label-focused = %index% 152 label-focused-background = ${colors.background-alt} 153 label-focused-underline= ${colors.primary} 154 label-focused-padding = 2 155 156 ; unfocused = Inactive workspace on any monitor 157 label-unfocused = %index% 158 label-unfocused-padding = 2 159 160 ; visible = Active workspace on unfocused monitor 161 label-visible = %index% 162 label-visible-background = ${self.label-focused-background} 163 label-visible-underline = ${self.label-focused-underline} 164 label-visible-padding = ${self.label-focused-padding} 165 166 ; urgent = Workspace with urgency hint set 167 label-urgent = %index% 168 label-urgent-background = ${colors.alert} 169 label-urgent-padding = 2 170 171 ; Separator in between workspaces 172 ; label-separator = | 173 174 175 [module/mpd] 176 type = internal/mpd 177 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> 178 179 icon-prev = 180 icon-stop = 181 icon-play = 182 icon-pause = 183 icon-next = 184 185 label-song-maxlen = 25 186 label-song-ellipsis = true 187 188 [module/xbacklight] 189 type = internal/xbacklight 190 191 format = <label> <bar> 192 label = BL 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-alt} 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-alt} 223 format-underline = #4bffdc 224 label = %percentage_used%% 225 226 [module/wlan] 227 type = internal/network 228 interface = net1 229 interval = 3.0 230 231 format-connected = <ramp-signal> <label-connected> 232 format-connected-underline = #9f78e1 233 label-connected = %essid% 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-alt} 247 248 [module/eth] 249 type = internal/network 250 interface = enp4s0 251 interval = 3.0 252 253 format-connected-underline = #55aa55 254 format-connected-prefix = " " 255 format-connected-prefix-foreground = ${colors.foreground-alt} 256 label-connected = %local_ip% 257 258 format-disconnected = 259 ;format-disconnected = <label-disconnected> 260 ;format-disconnected-underline = ${self.format-connected-underline} 261 ;label-disconnected = %ifname% disconnected 262 ;label-disconnected-foreground = ${colors.foreground-alt} 263 264 [module/date] 265 type = internal/date 266 interval = 5 267 268 date = 269 date-alt = " %Y-%m-%d" 270 271 time = %H:%M 272 time-alt = %H:%M:%S 273 274 format-prefix = 275 format-prefix-foreground = ${colors.foreground-alt} 276 format-underline = #0a6cf5 277 278 label = %date% %time% 279 280 [module/pulseaudio] 281 type = internal/pulseaudio 282 283 format-volume = <label-volume> <bar-volume> 284 label-volume = VOL %percentage%% 285 label-volume-foreground = ${root.foreground} 286 287 label-muted = 🔇 muted 288 label-muted-foreground = #666 289 290 bar-volume-width = 10 291 bar-volume-foreground-0 = #55aa55 292 bar-volume-foreground-1 = #55aa55 293 bar-volume-foreground-2 = #55aa55 294 bar-volume-foreground-3 = #55aa55 295 bar-volume-foreground-4 = #55aa55 296 bar-volume-foreground-5 = #f5a70a 297 bar-volume-foreground-6 = #ff5555 298 bar-volume-gradient = false 299 bar-volume-indicator = | 300 bar-volume-indicator-font = 2 301 bar-volume-fill = ─ 302 bar-volume-fill-font = 2 303 bar-volume-empty = ─ 304 bar-volume-empty-font = 2 305 bar-volume-empty-foreground = ${colors.foreground-alt} 306 307 [module/alsa] 308 type = internal/alsa 309 310 format-volume = <label-volume> <bar-volume> 311 label-volume = VOL 312 label-volume-foreground = ${root.foreground} 313 314 format-muted-prefix = " " 315 format-muted-foreground = ${colors.foreground-alt} 316 label-muted = sound muted 317 318 bar-volume-width = 10 319 bar-volume-foreground-0 = #55aa55 320 bar-volume-foreground-1 = #55aa55 321 bar-volume-foreground-2 = #55aa55 322 bar-volume-foreground-3 = #55aa55 323 bar-volume-foreground-4 = #55aa55 324 bar-volume-foreground-5 = #f5a70a 325 bar-volume-foreground-6 = #ff5555 326 bar-volume-gradient = false 327 bar-volume-indicator = | 328 bar-volume-indicator-font = 2 329 bar-volume-fill = ─ 330 bar-volume-fill-font = 2 331 bar-volume-empty = ─ 332 bar-volume-empty-font = 2 333 bar-volume-empty-foreground = ${colors.foreground-alt} 334 335 [module/battery] 336 type = internal/battery 337 battery = BAT0 338 adapter = ADP1 339 full-at = 98 340 341 format-charging = <animation-charging> <label-charging> 342 format-charging-underline = #ffb52a 343 344 format-discharging = <animation-discharging> <label-discharging> 345 format-discharging-underline = ${self.format-charging-underline} 346 347 format-full-prefix = " " 348 format-full-prefix-foreground = ${colors.foreground-alt} 349 format-full-underline = ${self.format-charging-underline} 350 351 ramp-capacity-0 = 352 ramp-capacity-1 = 353 ramp-capacity-2 = 354 ramp-capacity-foreground = ${colors.foreground-alt} 355 356 animation-charging-0 = 357 animation-charging-1 = 358 animation-charging-2 = 359 animation-charging-foreground = ${colors.foreground-alt} 360 animation-charging-framerate = 750 361 362 animation-discharging-0 = 363 animation-discharging-1 = 364 animation-discharging-2 = 365 animation-discharging-foreground = ${colors.foreground-alt} 366 animation-discharging-framerate = 750 367 368 [module/temperature] 369 type = internal/temperature 370 thermal-zone = 0 371 warn-temperature = 60 372 373 format = <ramp> <label> 374 format-underline = #f50a4d 375 format-warn = <ramp> <label-warn> 376 format-warn-underline = ${self.format-underline} 377 378 label = %temperature-c% 379 label-warn = %temperature-c% 380 label-warn-foreground = ${colors.secondary} 381 382 ramp-0 = 383 ramp-1 = 384 ramp-2 = 385 ramp-foreground = ${colors.foreground-alt} 386 387 [module/powermenu] 388 type = custom/menu 389 390 expand-right = true 391 392 format-spacing = 1 393 394 label-open = 395 label-open-foreground = ${colors.secondary} 396 label-close = cancel 397 label-close-foreground = ${colors.secondary} 398 label-separator = | 399 label-separator-foreground = ${colors.foreground-alt} 400 401 menu-0-0 = reboot 402 menu-0-0-exec = menu-open-1 403 menu-0-1 = power off 404 menu-0-1-exec = menu-open-2 405 406 menu-1-0 = cancel 407 menu-1-0-exec = menu-open-0 408 menu-1-1 = reboot 409 menu-1-1-exec = sudo reboot 410 411 menu-2-0 = power off 412 menu-2-0-exec = sudo poweroff 413 menu-2-1 = cancel 414 menu-2-1-exec = menu-open-0 415 416 [settings] 417 screenchange-reload = true 418 ;compositing-background = xor 419 ;compositing-background = screen 420 ;compositing-foreground = source 421 ;compositing-border = over 422 ;pseudo-transparency = false 423 424 [global/wm] 425 margin-top = 5 426 margin-bottom = 5 427 428 ; vim:ft=dosini