;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================

;==================== COLORS
[colors]
white = #d1d1d1
gray = #585858
black = #090909
red = #c795ae
blue = #95aec7
yellow = #c7ae95
green = #aec795
orange = #FB8C00

background = #eA242424
foreground = ${colors.white}
background-alt = ${colors.orange}
foreground-alt = #121212
primary = #f8941f
secondary = #f8941f
alert = #bd2c40

[variables]
main-monitor=HDMI-0

;==================== WM
[global/wm]
margin-top = 5
margin-bottom = 5


;================================
;================================ herbstluftWM bar
;================================

[bar/mainbar-herbstluftwm]
monitor = ${variables.main-monitor}
override-redirect = true
enable-ipc = true

width = 1890px
height = 35
offset-x = 15px
offset-y = 2px

fixed-center = true
bottom = false
separator =
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 1
line-color = #f00

padding-right = 2
padding-top = 40
module-margin-left = 2
module-margin-right = 2

;https://github.com/jaagr/polybar/wiki/Fonts
font-0 = "Iosevka:style=Regular:pixelsize=11;3"
font-1 = "Font Awesome 5 Free Solid:style=Solid;3"
font-2 = "Siji:style=Regular"

modules-left = herbstluftwm
modules-center = xwindow
modules-right = weather cpu memory temperature volume date powermenu

tray-detached = false
tray-offset-x = 2
tray-offset-y = 0
tray-padding = 2
tray-maxsize = 20
tray-scale = 1.0
tray-position = right
tray-background = ${colors.background}

scroll-up = herbstclient use_index -1
scroll-down = herbstclient use_index +1

;================================
;================================ Modules
;================================

; HLWM workspace info

[module/herbstluftwm]
type = custom/script
exec-if = ps -C herbstluftwm >/dev/null 2>&1
exec = MONITOR=HDMI-0 ~/Private/config/herbstluft/tags.sh
tail = true


;==================== Mod CPU
[module/cpu]
type = internal/cpu
interval = 1
format =