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