[colors]
background = #000000
background-alt = #000000
foreground = #cccccc
foreground-alt = #cccccc
primary = #526274
secondary = #57553a
alert = #a17c38
active = {active}
inactive = {inactive}
highlight = #57553a
error = #a64848

bspwmborder = #57553a
pulse = #41434f
xkb = #844d2c
memory = #57553a
eth = #a17c38
pc = #41434f
xwindow = #a17c38
mus = #57553a

[bar/top]
monitor = ${env:MONITOR:}
font-0 = Hack:pixelsize=10;2
monitor-strict = false
override-redirect = false
bottom = false
fixed-center = false
width = 100%
height = 20
offset-x = 0%
offset-y = 0%

background = ${colors.background}
foreground = ${colors.foreground}

radius = 3
line-size = 2
line-color = #000000

border-size = 0
border-color = #000000

padding-left = 0
padding-right = 0

module-margin-left = 0
module-margin-right = 0

modules-left = bspwm sep

;modules-center = xwindow

modules-right = date sep xkeyboard sep cpu space temperature sep memory sep filesystem sep pulseaudio sep

tray-position = right
tray-padding = 0
tray-maxsize = 14
tray-background = #000000

wm-restack = bspwm

;override-redirect = true

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

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

[module/date]
type = internal/date
interval = 1

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

label = "%date% %time%"
label-padding = 1
label-foreground = ${colors.foreground}

date = %F

time = %H:%M:%S %p

[module/filesystem]
type = internal/fs

mount-0 = /
interval = 10
fixed-values = true
spacing = 1

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

label-mounted = "DISK %used% / %total%"
label-mounted-padding = 1
label-mounted-foreground = ${colors.foreground}
label-mounted-background = ${colors.background}

[module/xwindow]
type=internal/xwindow

format=<label>

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

[module/pulseaudio]
type = internal/pulseaudio

format-volume = <label-volume>

label-volume = "VOL: %percentage%%"
label-volume-padding = 1
label-volume-foreground = ${colors.foreground}

label-muted = "muted"
label-muted-padding = 1
label-muted-foreground = #333333

[module/xkeyboard]
type = internal/xkeyboard

format=<label-layout><label-indicator>

label-layout = "%name%"
label-layout-padding = 1

label-indicator-on = %name%
label-indicator-on-padding-right = 1
label-indicator-on-foreground = #333333

[module/battery]
type = internal/battery

battery = BAT0
adapter = ADP1
full-at = 100

format-charging = <label-charging>
format-discharging = <label-discharging>

label-charging = CHR %percentage%%

label-discharging = BAT %percentage%%

[module/sep]
type = custom/text

content = "|"

[module/space]
type = custom/text

content = " "

[module/bspwm]
type = internal/bspwm

pin-workspaces = true

label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 1

label-occupied = %name%
label-occupied-padding = 1

label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1

label-empty = %name%
label-empty-foreground = #333333
label-empty-padding = 1

; label-separator = |

[module/cpu]
type = internal/cpu

label = CPU %percentage%%
label-padding-left = 1

[module/memory]
type = internal/memory

format = <label>

label = RAM %gb_used% / %gb_total% | SWAP %gb_swap_used% / %gb_swap_total%
label-padding = 1

[module/temperature]
type = internal/temperature

format = <label>
format-warn = <label-warn>

label = %temperature-c%
label-padding-right = 1

label-warn = ! %temperature-c%
label-warn-padding-right = 1
label-warn-foreground = ${colors.alert}

[module/powermenu]
type = custom/menu

format-spacing = 1

label-open ="[I/O]"
label-open-padding = 1
label-open-font = 0
label-open-background = ${colors.background}
label-open-foreground = ${colors.secondary}
label-close = "[ X ]"
label-close-padding-left = 1
label-close-font = 0
label-close-background = ${colors.background}
label-close-foreground = ${colors.secondary}
label-separator = "|"
label-separator-foreground = ${colors.foreground-alt}

menu-0-0 = Reboot
menu-0-0-font = 0
menu-0-0-exec = menu-open-1
menu-0-1 = Power Off
menu-0-1-font = 0
menu-0-1-exec = menu-open-2
menu-0-2 = Hibernate
menu-0-2-font = 0
menu-0-2-exec = menu-open-3
menu-0-3 = Suspend
menu-0-3-font = 0
menu-0-3-exec = menu-open-4
menu-0-4 = Lock
menu-0-4-font = 0
menu-0-4-exec = menu-open-5
menu-0-5 = Logout
menu-0-5-font = 0
menu-0-5-exec = menu-open-6

menu-1-0 = Reboot
menu-1-0-font = 0
menu-1-0-exec = systemctl reboot
menu-1-1 = Cancel
menu-1-1-font = 0
menu-1-1-exec = menu-open-0

menu-2-0 = Power Off
menu-2-0-font = 0
menu-2-0-exec = systemctl poweroff
menu-2-1 = Cancel
menu-2-1-font = 0
menu-2-1-exec = menu-open-0

menu-3-0 = Hibernate
menu-3-0-font = 0
menu-3-0-exec = systemctl hibernate
menu-3-1 = Cancel
menu-3-1-font = 0
menu-3-1-exec = menu-open-0

menu-4-0 = Suspend
menu-4-0-font = 0
menu-4-0-exec = systemctl suspend
menu-4-1 = Cancel
menu-4-1-font = 0
menu-4-1-exec = menu-open-0

menu-5-0 = Lock
menu-5-0-font = 0
menu-5-0-exec = loginctl lock-session
menu-5-1 = Cancel
menu-5-1-font = 0
menu-5-1-exec = menu-open-0

menu-6-0 = Logout
menu-6-0-font = 0
menu-6-0-exec = kill -9 -1
menu-6-1 = Cancel
menu-6-1-font = 0
menu-6-1-exec = menu-open-0
