[colors]
	background = #222222
	background-alt = #444444
	foreground = #cdcdcd
	foreground-alt = #7d7d7d

[bar/top]
	;monitor = ${env:MONITOR:HDMI-1}
	width = 100%
	height = 30
	radius = 0
	fixed-center = true

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

	line-size = 2
	line-color = #f00

	border-size = 0

	padding-left = 0
	padding-right = 2

	module-margin-left = 4
	module-margin-right = 4

	font-0 = NotoSans-Regular:size=11;1
	font-1 = FontAwesome:size=10;2
	font-2 = Unifont:size=9;1

	modules-left = i3 xwindow
	modules-right = xkeyboard volume wlan eth battery date
	;modules-center = cpu memory

	;tray-position = right
	;tray-padding = 2
	;tray-transparent = true
	;tray-background = #0063ff
	;tray-transparent = true

;i3
[module/i3]
	type = internal/i3
	format = <label-state><label-mode>
	index-sort = true
	wrapping-scroll = false
	strip-wsnumbers = true

	; Only show workspaces on the same output as the bar
	;pin-workspaces = true

	label-mode-padding = 2
	label-mode-foreground = ${colors.foreground}
	label-mode-background = ${colors.background-alt}
	label-mode-underline = ${colors.foreground}

	; focused = Active workspace on focused monitor
	label-focused = %index%
	label-focused-background = ${colors.background-alt}
	label-focused-underline = ${colors.foreground}
	label-focused-padding = 2

	; unfocused = Inactive workspace on any monitor
	label-unfocused = %index%
	label-unfocused-padding = ${self.label-focused-padding}

	; visible = Active workspace on unfocused monitor
	label-visible = %index%
	label-visible-background = ${self.label-focused-background}
	label-visible-underline = ${self.label-focused-underline}
	label-visible-padding = ${self.label-focused-padding}

	; urgent = Workspace with urgency hint set
	label-urgent = %index%
	label-urgent-background = ${self.label-focused-background}
	label-urgent-padding = ${self.label-focused-padding}

;title
[module/xwindow]
	type = internal/xwindow
	label = %title:0:100:...%

;lang
[module/xkeyboard]
	type = internal/xkeyboard
	format = <label-indicator><label-layout>
	blacklist-0 = num lock
	label-layout-padding = 2
	label-layout-underline = ${colors.foreground}
	label-indicator-font = 1
	label-indicator-on = 
	label-indicator-underline = ${colors.foreground}

;cpu
[module/cpu]
	type = internal/cpu
	interval = 2
	format-prefix = "cpu "
	format-prefix-foreground = ${colors.foreground-alt}
	;format-underline = #f90000
	label = %percentage%%

;mem
[module/memory]
	type = internal/memory
	interval = 2
	format-prefix = "ram "
	format-prefix-foreground = ${colors.foreground-alt}
	;format-underline = #4bffdc
	label = %percentage_used%%

;network
[module/wlan]
	type = internal/network
	interface = wlp0s20f3
	interval = 3.0

	format-connected = <ramp-signal> <label-connected>
	label-connected = %essid%

	format-disconnected =
	;format-disconnected = <label-disconnected>
	;format-disconnected-underline = ${self.format-connected-underline}
	;label-disconnected = %ifname% disconnected
	;label-disconnected-foreground = ${colors.foreground-alt}

	ramp-signal-0 = 
	ramp-signal-1 = 
	ramp-signal-2 = 
	ramp-signal-3 = 
	ramp-signal-4 = 
	ramp-signal-foreground = ${colors.foreground}

[module/eth]
	type = internal/network
	interface = enp2s0
	interval = 3.0

	format-connected-prefix = "  "
	format-connected-prefix-foreground = ${colors.foreground}
	label-connected = %local_ip%

	format-disconnected =
	;format-disconnected = <label-disconnected>
	;format-disconnected-underline = ${self.format-connected-underline}
	;label-disconnected = %ifname% disconnected
	;label-disconnected-foreground = ${colors.foreground-alt}

;backlight
;volume
[module/volume]
	type = internal/pulseaudio

	click-right = pavucontrol

	format-volume = <label-volume>   <bar-volume>
	label-volume = 
	label-volume-foreground = ${colors.foreground}

	format-muted-foreground = ${colors.background-alt}
	label-muted =    ━━━━━━━━━━━━━━━━━━━

	bar-volume-width = 20
	bar-volume-foreground-0 = #555
	bar-volume-foreground-1 = #666
	bar-volume-foreground-2 = #777
	bar-volume-foreground-3 = #888
	bar-volume-foreground-4 = #999
	bar-volume-foreground-5 = #aaa
	bar-volume-foreground-6 = ${colors.foreground}
	bar-volume-gradient = false
	bar-volume-indicator =
	bar-volume-indicator-font = 0
	bar-volume-fill = ━
	bar-volume-fill-font = 1
	bar-volume-empty = ━
	bar-volume-empty-font = 1
	bar-volume-empty-foreground = ${colors.background-alt}

;battery
[module/battery]
	type = internal/battery
	battery = BAT0
	full-at = 98

	format-charging = <animation-charging> <label-charging>
	format-discharging = <ramp-capacity> <label-discharging>
	format-full = <ramp-capacity> <label-full>

	ramp-capacity-0 = 
	ramp-capacity-0-foreground = #ff4242
	ramp-capacity-1 = 
	ramp-capacity-2 = 
	ramp-capacity-3 = 
	ramp-capacity-4 = 

	animation-charging-0 = ""
	animation-charging-framerate = 10000

;time date
[module/date]
	type = internal/date
	date = %%{F#7d7d7d}%Y-%m-%d%%{F-}  %%{F#cdcdcd}%H:%M%%{F-}
	date-alt =   %%{F#7d7d7d}%A, %d %B %Y  %%{F#cdcdcd}%H:%M:%S%%{F-}
