;===================================================== ; ; To learn more about how to configure Polybar ; go to https://github.com/jaagr/polybar ; ; The README contains alot of information ; ;===================================================== [fonts] font-0 = Iosevka Nerd Font:size=11:style=Heavy,Regular:antialias=true;1 font-1 = Noto Sans CJK JP:size=14:antialias=true;1 [colors] include-file = ~/.cache/wal/polybar [global/wm] margin-top = 5 margin-bottom = 5 [bar/default] enable_ipc = true width = 100%:-12 height = 28 offset-x = 6 offset-y = 3 dim-value = 1.0 cursor-click = pointer background = ${colors.background} foreground = ${colors.foreground} overline-size = 3 overline-color = #f00 underline-size = 3 underline-color = #00f border-bottom-size = 0 border-bottom-color = ${colors.primary} radius-top = 0 radius-bottom = 0 spacing = 0 padding-left = 1 padding-right = 2 module-margin-left = 2 module-margin-right = 1 font-0 = ${fonts.font-0} font-1 = ${fonts.font-1} wm-restack = bspwm override-redirect = true scroll-up = bspwm-desknext scroll-down = bspwm-deskprev [bar/HDMI-A-1] inherit = bar/default monitor = ${env:MONITOR:HDMI-A-1} modules-left = bspwm modules-center = modules-right = xwindow mpd mixer date [bar/DisplayPort-1] inherit = bar/default monitor = ${env:MONITOR:DisplayPort-1} modules-left = bspwm modules-center = xwindow modules-right = mpd mixer date [module/xwindow] type = internal/xwindow label = %title:0:90:...% label-padding-left = 2 label-padding-right = 2 label-foreground = ${colors.foreground-focus} label-background = ${colors.primary} label-underline= ${colors.primary} [module/mixer] type = custom/script exec = mixer listen --color=color2 --volume-icons="奄,奔,墳," tail = true format-prefix = " " # click-left = kitty -e cmixer & # click-right = mixer next format-prefix-foreground = ${xrdb:color2} [module/mutt-wizard] type = custom/script exec = mailbox interval = 5 format-prefix = " " ;format-underline = ${colors.red} click-left = kitty -e neomutt & format-prefix-foreground = ${xrdb:color2} [module/bspwm] type = internal/bspwm label-focused = %name% label-focused-foreground = ${colors.foreground-focus} label-focused-background = ${colors.primary} label-focused-underline= ${colors.primary} label-focused-underline-size = 5 label-focused-padding-left = 2.5 label-focused-padding-right = 2 label-occupied = %name% label-occupied-padding-left = 2.5 label-occupied-padding-right = 2 label-urgent = %name% label-urgent-background = ${colors.alert} label-urgent-padding-left = 2.5 label-urgent-padding-right = 2 label-empty = %name% label-empty-foreground = ${colors.foreground-alt} label-empty-padding-left = 2.5 label-empty-padding-right = 2 [module/mpd] type = internal/mpd host = 127.0.0.1 format-online-prefix = " " format-online = format-online-prefix-foreground = ${xrdb:color9} # format-online = ; Available tokens: ; %artist% ; %album-artist% ; %album% ; %date% ; %title% ; Default: %artist% - %title% label-song = %title%  %album% label-song-maxlen = 40 label-song-ellipsis = true ; Available tokens: ; %elapsed% ; %total% ; Default: %elapsed% / %total% ;label-time =「『 %elapsed% | %total% 』」 label-time = %elapsed%  %total% icon-prev =  icon-seekb =  icon-stop =  icon-play =  icon-pause =  icon-next =  icon-seekf =  icon-random = 🔀 icon-repeat = 🔁 icon-repeatone = 🔂 toggle-on-foreground = ${colors.primary} toggle-off-foreground = #66 ; Only applies if is used bar-progress-width = 12 bar-progress-indicator = | bar-progress-fill = ─ bar-progress-empty = ─ [module/backlight] type = internal/xbacklight format = label = BL ramp-0 = 🌕 ramp-1 = 🌔 ramp-2 = 🌓 ramp-3 = 🌒 ramp-4 = 🌑 bar-width = 10 bar-indicator =  bar-indicator-foreground = #ff bar-indicator-font = 2 bar-fill =  bar-fill-font = 2 bar-fill-foreground = #9f78e1 bar-empty =  bar-empty-font = 2 bar-empty-foreground = ${colors.foreground-alt} [module/cpu] type = internal/cpu interval = 0.5 format-prefix = "龍 " format-prefix-foreground = ${xrdb:color7} label = %percentage%% ; Available tags: ;