include-file = $HOME/.config/polybar/colors
include-file = $HOME/.config/polybar/modules

; https://github.com/polybar/polybar/wiki/Configuration#global-wm-settings
[global/wm]
margin-top = 0
margin-bottom = 0

; https://github.com/polybar/polybar/wiki/Configuration#application-settings
[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30

screenchange-reload = true

; format-foreground = #00ff00
; format-background = #ff00ff

pseudo-transparency = false

[bar/polybar]
monitor = ${env:MONITOR:eDP-1}

width = 100%
height = ${env:PANEL_HEIGHT:38}
; offset-x = 1%
; offset-y = 1%
radius = 0.0
fixed-center = true

background = ${wmcolors.bgcolor-inactive}
foreground = ${wmcolors.fgcolor-inactive}

line-size = 3
line-color = #ff00ff

border-size = 0
border-color = #00000000

padding-left = 0
padding-right = 2

module-margin-left = 1
module-margin-right = 2

; https://github.com/polybar/polybar/wiki/Fonts
font-0 = "DejaVu Sans:pixelsize=18;3"
font-1 = "Source Han Sans JP Medium:pixelsize=18;3"
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=16;3"
font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=16;3"
font-4 = "Font Awesome 5 Brands:pixelsize=16;3"

modules-left = bspwm
modules-center = title
modules-right = pulseaudio backlight-acpi wlan eth battery battery-low date powermenu

tray-maxsize = 30
tray-position = right
tray-padding = 2
tray-detached = false
;tray-background = #0063ff

wm-restack = bspwm
; wm-name = ${env:PANEL_NAME:polybar_panel}

scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev

cursor-click = pointer
; cursor-scroll = ns-resize