;==========================================================
;
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;
;   To learn more about how to configure Polybar
;   go to https://github.com/polybar/polybar
;
;   The README contains a lot of information
;
;==========================================================

[colors]
background = #282A2E
background-alt = #373B41
foreground = #C5C8C6
primary = #F0C674
secondary = #8ABEB7
alert = #A54242
disabled = #707880

[bar/main]
monitor = ${env:monitor}
width = 100%
height = 24pt
line-size = 5
bottom = true
fixed-center = true

background = ${palette.background}
foreground = ${palette.foreground}

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

font-0 = monospace;2
; https://feathericons.com/
; https://github.com/AT-UI/feather-font
font-1 = feather;2

modules-left = i3
modules-center = cpu memory filesystem
modules-right = volume sep date
tray-position = right
tray-detached = false

enable-ipc = true

click-right = jgmenu_run

[module/sep]
type = custom/text
content = |
content-foreground = ${palette.foreground}

[module/i3]
type = internal/i3
enable-click = true
enable-scroll = true
pin_workspaces = true

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

label-mode =  %mode%
label-mode-padding = 1
label-mode-background = ${palette.background-alt}
label-mode-foreground = ${palette.primary}
label-mode-prefix = 
label-mode-prefix-foreground = ${palette.primary}

label-focused = %name%
label-focused-background = ${palette.background-alt}
label-focused-padding = 1

label-unfocused = %name%
label-unfocused-padding = 1

label-urgent = %name%
label-urgent-underline = ${palette.alert}
label-urgent-padding = 1

label-visible = %name%
label-visible-foreground = ${palette.disabled}
label-visible-padding = 1

[module/xworkspaces]
type = internal/xworkspaces
enable-click = true
enable-scroll = true

label-active = %name%
label-active-background = ${palette.background-alt}
label-active-underline= ${palette.primary}
label-active-padding = 1

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

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

label-empty = %name%
label-empty-foreground = ${palette.disabled}
label-empty-padding = 1

[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /home

label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%

label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${palette.disabled}

[module/volume]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>

label-volume = %percentage%%
format-volume-prefix-foreground = ${palette.primary}

ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-foreground = ${palette.primary}

label-muted = MUTED
label-muted-foreground = ${palette.primary}

click-right = pavucontrol

[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${palette.primary}
label = %percentage_used:2%%

[module/cpu]
type = internal/cpu
interval = 2
format-prefix =  
format-prefix-foreground = ${palette.primary}
label = %percentage:2%%

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

date = %A, %d.%m.%Y 
time = at %H:%M:%S

label = %date% %time%
label-foreground = ${palette.foreground}

format-prefix = " "
format-prefix-foreground = ${palette.primary}

[settings]
screenchange-reload = true
pseudo-transparency = false
