# vim: ft=dosini

[settings]
enable-ipc = true
format-padding = 1
screenchange-reload = true
pseudo-transparency = true

[colors]
background = #262A2B
foreground = #DFDFDF
secondary  = #008DCD
alert      = #FF6C6B

[bar/bar]
width = 100%
height = 24
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
wm-restack = bspwm
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-left = bspwm windowname
modules-center = time date weather
modules-right = keyboard pulseaudio  archupd wifi-signal
tray-position = right
tray-padding = 0

[module/bspwm]
type = internal/bspwm
pin-workspaces = true
enable-click = true
fuzzy-match = true
enable-scroll = true
label-focused = 
label-focused-foreground = ${colors.secondary}
label-focused-padding = 2
label-occupied = 
label-occupied-foreground = ${colors.foreground}
label-occupied-padding = 2
label-urgent = 
label-urgent-foreground = ${colors.alert}
label-urgent-padding = 2
label-empty = 
label-empty-foreground = #58676C74
label-empty-padding = 2

[module/pulseaudio]
type = internal/pulseaudio
interval = 2
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 
ramp-volume-0 = 

[module/weather]
type = custom/script
exec = python3 ~/.config/bspwm/polybar/scripts/weather.py
interval = 60

[module/archupd]
type = custom/script
exec = ~/.config/bspwm/polybar/scripts/updates-pacman-aur.sh
interval = 60

[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/bspwm/polybar/scripts/wifi-signal.sh
interval = 3

[module/keyboard]
type = internal/xkeyboard
format-prefix = ""
label-layout = %layout%
blacklist-0 = num lock
blacklist-1 = scroll lock
blacklist-2= caps lock

[module/cpu]
type = internal/cpu
format-prefix = " "
interval = 2

[module/memory]
type = internal/memory
interval = 2
label = %percentage_used%%
format-prefix = " "

[module/windowname]
type = internal/xwindow
label = %title%
label-maxlen = 50

[module/date]
type = internal/date
interval = 600
date = %d.%m
label =  %date%

[module/time]
type = internal/date
time = %H:%M
label =  %time%
