
[colors]
background = ${xrdb:background}
foreground = ${xrdb:foreground}
color0 = ${xrdb:color0}
color1 = ${xrdb:color1}
color2 = ${xrdb:color2}
color3 = ${xrdb:color3}
color4 = ${xrdb:color4}
color5 = ${xrdb:color5}
color6 = ${xrdb:color6}
color7 = ${xrdb:color7}
color8 = ${xrdb:color8}
color9 = ${xrdb:color9}
color10 = ${xrdb:color10}
color11 = ${xrdb:color11}
color12 = ${xrdb:color12}
color13 = ${xrdb:color13}
color14 = ${xrdb:color14}
color15 = ${xrdb:color15}
dark-light = #272A2B 
active-light = #313435

[bar/herbs] 
tray-position = right
;monitor = LVDS1 
width =  98%
height = 35
padding-left = 1
padding-right = 1 
radius = 15 
offset-x = 1% 
offset-y = 1%
background = ${colors.background}
foreground = ${colors.foreground}
bottom = false

line-size = 1
wm-restack = bspwm

modules-left = menu xwindow
modules-center = mpd
modules-right = pulseaudio mem battery wlan time powermenu

font-0 = CaskaydiaCove Nerd Font:style=Bold:pixelsize=11;3
font-1 = CaskaydiaCove Nerd Font:size=15;3
font-2 = Material Design Icons:style=Bold:size=13;3
font-3 = Dejavu Serif:fontformat=truetype:size=10:antialias=true;3

[module/mpd]
type = internal/mpd
interval = 2
format-online = <label-song><icon-prev><toggle><icon-next>
icon-play-foreground = ${colors.color1}
icon-play = 󰐊 
icon-pause-foreground = ${colors.color1}
icon-pause = 󰏥 
icon-stop-foreground = ${colors.color1}
icon-stop = 󰓛 
icon-prev-foreground = ${colors.color4}
icon-prev = 󰒮 
icon-next-foreground = ${colors.color4}
icon-next = 󰒭 
icon-play-underline = ${colors.color3}
icon-next-underline = ${colors.color3}
icon-pause-underline = ${colors.color3}
icon-prev-underline = ${colors.color3}



[module/alsa]
type = internal/alsa
format-volume = <label-volume> <bar-volume> 
label-volume =   
label-volume-foreground = ${colors.color4}

format-muted-foreground = ${colors.foreground}
label-muted = 󰚙

format-muted-padding = 1
format-muted-background = #131a1c

bar-volume-width = 10
bar-volume-foreground-0 = #58acc4
bar-volume-foreground-1 = #58acc4
bar-volume-foreground-2 = #58acc4
bar-volume-foreground-3 = #58acc4
bar-volume-foreground-4 = #58acc4
bar-volume-foreground-5 = #58acc4
bar-volume-foreground-6 = #58acc4
bar-volume-gradient = true 
bar-volume-indicator =  
bar-volume-indicator-foreground = #58acc4
bar-volume-indicator-font = 1 
bar-volume-fill = ━  
bar-volume-fill-foreground = #61afef
bar-volume-fill-font = 1 
bar-volume-empty = ━   
bar-volume-empty-font = 1  
bar-volume-empty-foreground = ${colors.foreground}
format-volume-padding = 1

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 65
label-foreground =  ${colors.color7} 
format = <ramp> <label>
;format-underline = #b48ead 
format-warn = <ramp>  <label-warn>
format-warn-underline = #b48ead
;format-background = ${colors.color8}

label = %temperature-c%
label-warn = %temperature-c%
label-warn-backgroud = #b48ead
format-padding = 0 
ramp-0 = 󰸁  
ramp-foreground = ${colors.color11} 

[module/spaces]
type = custom/text
content = %{T3} %{T-}

[module/herbs]
type = internal/xworkspaces

pin-workspaces = false

enable-click = true
enable-scroll = false

format-padding = 0
format = "<label-state>"

label-active = " "
label-active-padding-right = 0
label-active-padding-left = 0

label-empty = " "
label-empty-padding-right = 0
label-empty-padding-left = 0

[module/pulseaudio]
type = internal/pulseaudio

;format-volume = <ramp-volume> <bar-volume>
format-volume = <label-volume> <bar-volume>
;label-volume = VOL %percentage%%
label-volume = 󰎆 %percentage%
label-volume-foreground =${colors.color12}
;extra added 
;format-volume-background = ${colors.yellow}
format-volume-background = ${colors.background}
format-volume-padding = 1
label-muted-padding = 1
;ramp-volume-0 = 󰕿
;ramp-volume-1 = 󰖀
;ramp-volume-2 = 󰕾
;ramp-volume-foreground = ${colors.background}
;will remove
label-muted = 󰎆 muted
label-muted-foreground = #666

bar-volume-width = 10
bar-volume-foreground-0 = 
bar-volume-foreground-1 = #61afef
bar-volume-foreground-2 = #61afef
bar-volume-foreground-3 = #61afef
bar-volume-foreground-4 = #61afef
bar-volume-foreground-5 = #61afef
bar-volume-foreground-6 = #61afef
bar-volume-gradient = false
bar-volume-indicator = 
bar-volume-indicator-font = 4
bar-volume-fill = ─  
bar-volume-fill-font = 4
bar-volume-empty = ─
bar-volume-empty-font = 4
bar-volume-empty-foreground = ${colors.foreground}

[module/time]
type = internal/date
interval = 60

format = <label>
format-background = ${colors.color5} 

date = %{F#131a1c}󰥔 %{F-}%{F#131a1c}%H:%M%{F-}
time-alt = %{F#131a1c}󰃭 %{F-}%{F#131a1c}%a, %b %d%{F-}
format-padding = 1 

label = %date%%time%
# For users having Voi Linux 
[module/updates]
type = custom/script 
exec = ~/.config/polybar/scripts/xbps-updates 
format = <label> 
label = 󰬬 %output% 
label-padding =1 
label-background = ${colors.color8}
label-foreground = ${colors.color1}

# For users using arch linux 
[module/pacup]
type = custom/script 
exec = ~/.config/polybar/scripts/pacup.sh 
format = <label> 
label = 󰬬 %output% 
label-padding =1 
label-background = ${colors.color8}
label-foreground = ${colors.color1}

[module/mem]
type = custom/script
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
format = <label>
format-prefix = 󰍛 
#format-background = ${colors.color8} 
format-padding = 0
label = %output%M used 
label-foreground = ${colors.foreground} 
label-padding = 1
format-prefix-foreground = ${colors.color2}
format-margin = 0 

[module/menu]
type = custom/text
content = Hello, Gallant!
content-background = #81A1C1
content-foreground = #4C566A
click-left = rofi -show drun 
content-underline = #4C566A
content-padding= 1 

[module/xbacklight]
type = internal/xbacklight
format = <label>
format-prefix = "  "
label = %percentage%
format-prefix-foreground = #e5c07b
label-foreground =   #abb2bf
format-padding = 1

[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-connected =  <label-connected>
label-connected = "󰤧 " 
label-connected-foreground = ${colors.color1}
label-disconnected = "󰤭 " 
label-disconnedted-foreground = ${colors.color1} 
#label-connected-background = ${colors.color8}
label-disconnected-bacoground = ${colors.color1}
label-connected-padding = 0  

[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 98

format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
format-charging-foreground = ${colors.color4}
format-charging-background = ${colors.background}

format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-discharging-foreground = ${colors.color4}
format-discharging-background = ${colors.background}

format-full-prefix = " "
format-full-prefix-foreground = ${colors.color4}
format-foreground = ${colors.color4}
format-background = ${colors.background}
format-full-padding = 1 

label-discharging-foreground = ${colors.foreground}
label-charging-foreground = ${colors.color7}
label-padding = 1

ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${colors.color4}

animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${colors.color4}
animation-charging-framerate = 750

format-charging-padding = 1
format-discharging-padding = 1

[module/cpu]
type = internal/cpu
interval = 2.5

format = <label> 
format-padding = 1
format-margin = 0

label = %{F#98c379}󰻟 %{F-}%percentage%%
;format-backgoound = ${colors.color12} 
format-foreground =${colors.color7}

[module/xwindow]
type = internal/xwindow

label = %title% 
label-maxlen = 20
label-foreground = ${colors.foreground} 
label-padding = 1 

; Used instead of label when there is no window title
label-empty = ""
;label-empty-foreground = ${color.blue-light}
label-empty-padding = 2

[module/settings]
screenchange-reload = true
pseudo-transparency = true
