[colors]
background = #222
foreground = #eee
linecolor = #fba922
bordercolor = #333
accent = #e60053

[settings]
screenchange-reload = true

[global/wm]
margin-top = 0
margin-bottom = 0

[bar/top]
enable-ipc = true
monitor = eDP
width = 100%
height = 24

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

line-color = ${colors.linecolor}
underline-size = 1
overline-size = 2

border-bottom-size = 2
border-bottom-color = ${colors.bordercolor}

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

font-0 = dina:pixelsize=9;1
font-1 = siji:pixelsize=10;1
font-2 = unifont:size=6;1

modules-left = i3
modules-right = volume battery memory cpu date

tray-position = right
tray-padding = 4
tray-maxsize = 16

wm-restack = bspwm

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

bspwm-focused-overline = ${colors.linecolor}
bspwm-focused-underline = #cc333333

[module/fs-root]
type = internal/fs
mount-0 = /
label-mounted = %{F#e60053}%percentage_used%%%{F-} used of %mountpoint%

[module/i3]
type = internal/i3
index-sort = true
pin-workspaces = true
wrapping-scroll = true

format = <label-state> <label-mode>

label-mode = %mode%
label-mode-padding = 2
label-mode-background = ${colors.accent}

label-focused = %index%
label-focused-foreground = #cccccc
label-focused-underline = #cccccc
label-focused-padding = 3

label-unfocused = %index%
label-unfocused-padding = 3

label-urgent = %index%!
label-urgent-background = #00ffa1
label-urgent-padding = 3

label-visible = %index%
label-visible-padding = 3 

[module/cpu]
type = internal/cpu
interval = 2
label = %percentage%%
format-prefix = "CPU   "
format-prefix-foreground = #666

[module/memory]
type = internal/memory
interval = 2
label = %percentage_used%%
format-prefix = "RAM   "
format-prefix-foreground = #666

[module/date]
type = internal/date
label = %{F#666}TIME%{F-}   %time%  -  %date%
label-prefix = "TIME"
date = %d.%m.%Y
time = %H:%M
interval = 5

[module/volume]
type = internal/pulseaudio
speaker-mixer = Speaker
headphone-mixer = Headphone
headphone-id = 9

format-volume = <label-volume>
format-volume-prefix = "AUDIO   "
format-volume-prefix-foreground = #666
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}

format-muted-foreground = #777
label-muted = AUDIO MUTED

[module/battery]
type = internal/battery
full-at = 99
time-format = %H:%M

format-charging = <label-charging>
format-charging-prefix = "CHR   "
format-charging-prefix-foreground = #666
label-charging = %percentage%%  -  %time%

format-discharging = <label-discharging>
format-discharging-prefix = "BAT   "
format-discharging-prefix-foreground = #666
label-discharging = %percentage%%  -  %time%

format-full = <label-full>
format-full-prefix = "FLL "
format-full-prefix-foreground = #666

