config (11875B)
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:color0:#222} 21 background = #222222 22 background-alt = #444444 23 ;foreground = ${xrdb:color7:#222} 24 foreground = #dfdfdf 25 foreground-alt = #555 26 ;primary = #ffb52a 27 primary = #005577 28 secondary = #e60053 29 alert = #bd2c40 30 31 [bar/example] 32 ;monitor = ${env:MONITOR:HDMI-1} 33 width = 100% 34 height = 22 35 ;offset-x = 1% 36 ;offset-y = 1% 37 ;radius = 6.0 38 fixed-center = false 39 40 background = ${colors.background} 41 foreground = ${colors.foreground} 42 43 line-size = 3 44 line-color = #f00 45 46 border-size = 0 47 border-color = #00000000 48 49 padding-left = 0 50 padding-right = 2 51 52 module-margin-left = 1 53 module-margin-right = 2 54 55 font-0 = Ubuntu Mono Derivative Powerline:pixelsize=10:antialias=true:autohint=true:style=Bold 56 font-1 = Noto Sans CJK SC:pixelsize=10;1 57 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 58 font-2 = Siji:pixelsize=10;1 59 60 modules-left = dwm 61 modules-center = mpd 62 ;modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu 63 modules-right = filesystem memory cpu wlan battery temperature date powermenu 64 65 tray-position = right 66 tray-padding = 2 67 ;tray-background = #0063ff 68 69 ;wm-restack = bspwm 70 ;wm-restack = i3 71 72 override-redirect = false 73 74 ;scroll-up = bspwm-desknext 75 ;scroll-down = bspwm-deskprev 76 77 ;scroll-up = i3wm-wsnext 78 ;scroll-down = i3wm-wsprev 79 80 cursor-click = pointer 81 cursor-scroll = ns-resize 82 83 bottom = true 84 85 [module/xwindow] 86 type = internal/xwindow 87 label = %title:0:30:...% 88 89 [module/xkeyboard] 90 type = internal/xkeyboard 91 blacklist-0 = num lock 92 93 format-prefix = " " 94 format-prefix-foreground = ${colors.foreground-alt} 95 format-prefix-underline = ${colors.secondary} 96 97 label-layout = %layout% 98 label-layout-underline = ${colors.secondary} 99 100 label-indicator-padding = 2 101 label-indicator-margin = 1 102 label-indicator-background = ${colors.secondary} 103 label-indicator-underline = ${colors.secondary} 104 105 [module/filesystem] 106 type = internal/fs 107 interval = 25 108 109 mount-0 = / 110 111 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% 112 label-unmounted = %mountpoint% not mounted 113 label-unmounted-foreground = ${colors.foreground-alt} 114 115 [module/dwm] 116 type = internal/dwm 117 format = <label-tags> <label-layout> <label-floating> <label-title> 118 ; Path to dwm socket (default: /tmp/dwm.sock) 119 ;bottom = false socket-path = /tmp/dwm.sock 120 121 ; Left-click to view tag, right-click to toggle tag view 122 enable-tags-click = false 123 ; Scroll to cycle between available tags 124 enable-tags-scroll = false 125 ; If true and enable-tags-scroll = true, scrolling will view all tags regardless if occupied 126 tags-scroll-empty = false 127 ; If true and enable-tags-scroll = true, scrolling will cycle through tags backwards 128 tags-scroll-reverse = false 129 ; If true and enable-tags-scroll = true, wrap active tag when scrolling 130 tags-scroll-wrap = false 131 ; Left-click to set secondary layout, right-click to switch to previous layout 132 enable-layout-click = false 133 ; Scroll to cycle between available layouts 134 enable-layout-scroll = false 135 ; Wrap when scrolling and reaching begining/end of layouts 136 layout-scroll-wrap = false 137 ; Reverse scroll direction 138 layout-scroll-reverse = false 139 140 ; If enable-layout-click = true, clicking the layout symbol will switch to this layout 141 secondary-layout-symbol = [M] 142 143 ; Separator in between shown tags 144 ; label-separator = | 145 146 ; Title of currently focused window 147 ; Available tokens: 148 ; %title% 149 label-title = %title% 150 label-title-padding = 1 151 label-title-forefround = ${colors.primary} 152 label-title-maxlen = 50 153 154 ; Symbol of current layout 155 ; Available tokens: 156 ; %symbol% 157 label-layout = %symbol% 158 label-layout-padding = 1 159 label-layout-foreground = #000 160 label-layout-background = ${colors.primary} 161 162 ; Text to show when currently focused window is floating 163 label-floating = F 164 165 ; States: focused, unfocused, visible, urgent, empty 166 ; Available tokens: 167 ; %name% 168 169 ; focused = Selected tag on focused monitor 170 label-focused = %name% 171 label-focused-background = ${colors.primary} 172 ;label-focused-underline= ${colors.background-alt} 173 label-focused-padding = 1 174 175 ; unfocused = Unselected tag on unselected monitor 176 label-unfocused = %name% 177 label-unfocused-padding = 1 178 label-unfocused-background = ${colors.background} 179 label-unfocused-underline= ${colors.background-alt} 180 181 ; visible = Unselected tag, but occupied tag on any monitor 182 label-visible = %name% 183 label-visible-background = ${colors.background} 184 label-visible-underline = ${colors.background-alt} 185 label-visible-padding = ${self.label-focused-padding} 186 187 ; urgent = Unselected tag with window that has urgency hint set 188 label-urgent = %name% 189 label-urgent-background = ${colors.alert} 190 label-urgent-padding = 1 191 192 ; empty = Unselected and unoccupied tag 193 ; This can be set to an empty string to hide empty tags 194 label-empty = %name% 195 label-empty-background = ${colors.background} 196 label-empty-padding = 1 197 198 [module/mpd] 199 type = internal/mpd 200 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> 201 202 icon-prev = 203 icon-stop = 204 icon-play = 205 icon-pause = 206 icon-next = 207 208 label-song-maxlen = 25 209 label-song-ellipsis = true 210 211 [module/xbacklight] 212 type = internal/xbacklight 213 214 format = <label> <bar> 215 label = BL 216 217 bar-width = 10 218 bar-indicator = | 219 bar-indicator-foreground = #fff 220 bar-indicator-font = 2 221 bar-fill = ─ 222 bar-fill-font = 2 223 bar-fill-foreground = #9f78e1 224 bar-empty = ─ 225 bar-empty-font = 2 226 bar-empty-foreground = ${colors.foreground-alt} 227 228 [module/backlight-acpi] 229 inherit = module/xbacklight 230 type = internal/backlight 231 card = intel_backlight 232 233 [module/cpu] 234 type = internal/cpu 235 interval = 2 236 format-prefix = " " 237 format-prefix-foreground = ${colors.foreground-alt} 238 format-underline = #f90000 239 label = %percentage:2%% 240 241 [module/memory] 242 type = internal/memory 243 interval = 2 244 format-prefix = " " 245 format-prefix-foreground = ${colors.foreground-alt} 246 format-underline = #4bffdc 247 label = %percentage_used%% 248 249 [module/wlan] 250 type = internal/network 251 interface = wlp2s0 252 interval = 3.0 253 254 format-connected = <ramp-signal> <label-connected> 255 format-connected-underline = #9f78e1 256 label-connected = %essid% 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 ramp-signal-0 = 265 ramp-signal-1 = 266 ramp-signal-2 = 267 ramp-signal-3 = 268 ramp-signal-4 = 269 ramp-signal-foreground = ${colors.foreground-alt} 270 271 [module/eth] 272 type = internal/network 273 interface = net0 274 interval = 3.0 275 276 format-connected-underline = #55aa55 277 format-connected-prefix = " " 278 format-connected-prefix-foreground = ${colors.foreground-alt} 279 label-connected = %local_ip% 280 281 format-disconnected = 282 ;format-disconnected = <label-disconnected> 283 ;format-disconnected-underline = ${self.format-connected-underline} 284 ;label-disconnected = %ifname% disconnected 285 ;label-disconnected-foreground = ${colors.foreground-alt} 286 287 [module/date] 288 type = internal/date 289 interval = 5 290 291 date = 292 date-alt = " %Y-%m-%d" 293 294 time = %H:%M 295 time-alt = %H:%M:%S 296 297 format-prefix = 298 format-prefix-foreground = ${colors.foreground-alt} 299 format-underline = #0a6cf5 300 301 label = %date% %time% 302 303 [module/pulseaudio] 304 type = internal/pulseaudio 305 306 format-volume = <label-volume> <bar-volume> 307 label-volume = VOL %percentage%% 308 label-volume-foreground = ${root.foreground} 309 310 label-muted = 🔇 muted 311 label-muted-foreground = #666 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/alsa] 331 type = internal/alsa 332 333 format-volume = <label-volume> <bar-volume> 334 label-volume = VOL 335 label-volume-foreground = ${root.foreground} 336 337 format-muted-prefix = " " 338 format-muted-foreground = ${colors.foreground-alt} 339 label-muted = sound muted 340 341 bar-volume-width = 10 342 bar-volume-foreground-0 = #55aa55 343 bar-volume-foreground-1 = #55aa55 344 bar-volume-foreground-2 = #55aa55 345 bar-volume-foreground-3 = #55aa55 346 bar-volume-foreground-4 = #55aa55 347 bar-volume-foreground-5 = #f5a70a 348 bar-volume-foreground-6 = #ff5555 349 bar-volume-gradient = false 350 bar-volume-indicator = | 351 bar-volume-indicator-font = 2 352 bar-volume-fill = ─ 353 bar-volume-fill-font = 2 354 bar-volume-empty = ─ 355 bar-volume-empty-font = 2 356 bar-volume-empty-foreground = ${colors.foreground-alt} 357 358 [module/battery] 359 type = internal/battery 360 battery = BAT0 361 adapter = AC 362 full-at = 98 363 364 format-charging = <animation-charging> <label-charging> 365 format-charging-underline = #ffb52a 366 367 format-discharging = <animation-discharging> <label-discharging> 368 format-discharging-underline = ${self.format-charging-underline} 369 370 format-full-prefix = " " 371 format-full-prefix-foreground = ${colors.foreground-alt} 372 format-full-underline = ${self.format-charging-underline} 373 374 ramp-capacity-0 = 375 ramp-capacity-1 = 376 ramp-capacity-2 = 377 ramp-capacity-foreground = ${colors.foreground-alt} 378 379 animation-charging-0 = 380 animation-charging-1 = 381 animation-charging-2 = 382 animation-charging-foreground = ${colors.foreground-alt} 383 animation-charging-framerate = 750 384 385 animation-discharging-0 = 386 animation-discharging-1 = 387 animation-discharging-2 = 388 animation-discharging-foreground = ${colors.foreground-alt} 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-alt} 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 poweroff 436 menu-2-1 = cancel 437 menu-2-1-exec = menu-open-0 438 439 [settings] 440 screenchange-reload = true 441 ;compositing-background = xor 442 ;compositing-background = screen 443 ;compositing-foreground = source 444 ;compositing-border = over 445 ;pseudo-transparency = false 446 447 [global/wm] 448 margin-top = 5 449 margin-bottom = 5 450 451 ; vim:ft=dosini