# vim: ft=dosini
[colors]
	accent = #EDD080
	bckgrd = #121212
	select = #161A1B

	background =            ${xrdb:color0:self.bckgrd}
	background-alt = 		${self.select}
	foreground =            ${xrdb:color6:#A5ffffff}
	foreground-alt =        ${xrdb:color7:#222}
    primary =               ${xrdb:color1:self.accent}
	secondary =             ${xrdb:color2:#222}
	alert =                 ${xrdb:color3:#bd2c40}
	white = 			    #FFFFFF
    grey =                  #AAAAAA
	transparent = 			#00000000


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


[settings]
	throttle-output = 5
	throttle-output-for = 10
	throttle-input-for = 30
	screenchange-reload = true
	bargapp= 10
	barwidth = 100%
	barheigh = 48


[bar/main]
	monitor-strict = true
	fixed-center = true
	dpi = 96
	bottom = false
	width = ${settings.barwidth}
	height = ${settings.barheigh}
	offset-x = 0
	offset-y = 0
	background = ${colors.background}
	foreground = ${colors.foreground}
	overline-size = 0
	overline-color = #f00
	underline-size = 2
	underline-color = #00f
	border-top-size = ${settings.bargapp}
	border-left-size = ${settings.bargapp}
	border-right-size = ${settings.bargapp}
	border-bottom-size = 0
	border-color = ${colors.transparent}
	radius-top = 10
	radius-bottom = 10
	spacing = 2
	padding-left = 2
	padding-right = 2
	module-margin-left = 2
	module-margin-right = 2
	font-0 = Monoid:size=12;4
    font-1 = unifont:size=12;1
    font-2 = FontAwesome:size=12;3
    font-3 = NotoSans-Regular:size=12;-1
    font-4 = MaterialIcons:size=16;5
	tray-position = right
	tray-padding = 4
	modules-left = cast wlan
    modules-center = mpd
	modules-right = filesystem battery volume light date


[bar/workspaces]
	monitor-strict = true
	dpi = 96
	bottom = true
    width = ${settings.barwidth}
    height = 3
	background = ${colors.transparent}
	foreground = ${colors.foreground}
	border-top-size = 0
	border-bottom-size = 0
	border-color = ${colors.transparent}
	font-0 = Monoisome:size=10;4
	font-1 = FontAwesome:pixelsize=10;3
	font-5 = unifont:size=14;1
	modules-center = i3 BSP


[module/i3]
	type = internal/i3
	format = <label-state> <label-mode>
	pin-workspaces = true
	label-focused = %name%
	label-focused-foreground= ${colors.background}
	label-focused-background = ${colors.foreground}
	label-focused-underline = ${colors.foreground}
	label-focused-padding = 3
	label-unfocused = %name%
	label-unfocused-padding = 2
	label-unfocused-background = ${colors.background}
	label-urgent = %name%
	label-urgent-foreground= ${colors.alert}
	label-urgent-background = ${colors.background-alt}
	label-urgent-padding = 2
	label-empty = %name%
	label-empty-background = ${colors.background-alt}
	label-empty-padding = ${self.label-focused-padding}


[module/mouseloc]
	type = custom/script
	exec = echo "X:" $(xdotool getmouselocation | awk '{print substr($2,3,4)}') "  Y:" $(xdotool getmouselocation | awk '{print substr($1,3,4)}')
	interval = 0.1
	label = %output%
	format = <label>
	format-foreground = ${colors.foreground}

[module/mpd]
    type = internal/mpd
    host = 127.0.0.1
    port = 6600
    interval = 1
    format-online = <icon-prev> <icon-stop> <toggle> <icon-next>  <icon-repeat> <icon-random>  <bar-progress> <label-time>  <label-song>
    icon-play = 
    icon-pause = 
    icon-stop = 
    icon-prev = 
    icon-next = 
    icon-random = 
    icon-repeat = 
    toggle-on-foreground =
    toggle-off-foreground = #55
    bar-progress-width = 30
    bar-progress-format = %{A4:mpdseek+2: A5:mpdseek-2:}%fill%%indicator%%empty%%{A A}
    bar-progress-indicator = |
    bar-progress-indicator-foreground = #ff
    bar-progress-indicator-font = 3
    bar-progress-fill = —
    bar-progress-fill-foreground = #bb
    bar-progress-fill-font = 3
    bar-progress-empty = —
    bar-progress-empty-font = 3
    bar-progress-empty-foreground = #44

[module/title]
	type = internal/xwindow
	format = <label>
	;format-foreground = ${colors.foreground}


[module/search]
	type = custom/script
	exec = echo "   search:    "
	interval = 60
	label = %output%
	format = <label>
	format-foreground = ${colors.background}
	format-background = ${colors.foreground}


[module/cpu]
	format-label = internal/cpu
	format = <label>
	type = internal/cpu
	interval = 2
	label = " %percentage%%"
	format-foreground = ${colors.foreground}


[module/memory]
	type = internal/memory
	interval = 2
	label = " %percentage_used%%"
	format-foreground = ${colors.foreground}


[module/temperature]
	type = internal/temperature
	warn-temperature = 65

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

	label = %temperature%
	label-warn = %temperature%!!!


[module/cputemp]
	type = custom/script
	exec = sensors | grep --max-count=1 "CPU Temperature:" | awk '{print substr($0,22,2)}'
	interval = 10
	label = " %output%°C"
	format-foreground = ${colors.foreground}


[module/gputemp]
	type = custom/script
	exec = nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
	interval = 10
	label = "GPU %output%°C"
	format-foreground = ${colors.foreground}


[module/wlan]
	type = internal/network
	interface = wlp2s0
	interval = 3.0
	format-connected = <label-connected>
	label-connected =  %essid%     %signal%     %upspeed%     %downspeed%
	label-disconnected = "%{A1:connman-gtk &:}%{A}"
	label-disconnected-foreground = #5b
	ramp-signal-0 = 
	ramp-signal-1 = 
	ramp-signal-2 = 
	ramp-signal-3 = 
	ramp-signal-4 = 
	ramp-signal-foreground = ${colors.foreground}
	format-connected-foreground = ${colors.foreground}


[module/date]
	type = internal/date
	interval = 1.0
	date = %a %b %d, 
	time = %H:%M
	date-alt = %A, %d %B %Y
	time-alt = %H:%M:%S
	label = %date% %time%
	format = <label>
	format-foreground = ${colors.foreground}


[module/volume]
	type = internal/volume
	format-volume = <ramp-volume><label-volume>
	format-muted = <label-muted>
	format-volume-foreground = ${colors.foreground}
	label-volume = %percentage%
	label-muted =   M
	label-muted-foreground = #aaa
	ramp-volume-0 = 
	ramp-volume-1 = 
	ramp-volume-2 = 
	ramp-headphones-0 = 


[module/pomo]
	type = custom/script
	interval = 1
	exec = pomo status | awk '{print substr($3,1,6)}' | grep -o '[0-9]\+' | sed 'N;s/\n/ : /'
	label = "  %output%"
	format-foreground = ${colors.foreground}


[module/bresilla]
	type = custom/script
	interval = 1
	exec = echo "BRESILLA"
	label = "%output%"
	click-left = firefox --new-tab "www.bresilla.com"
	format-foreground = ${colors.foreground}


[module/light]
	type = internal/backlight
	card = intel_backlight
	enable-scroll = true
	format = <label>
	label =  %percentage%%
	label-foreground = ${colors.foreground}


[module/battery]
	type = internal/battery
	battery = BAT0
	adapter = AC
	full-at = 98
	time-format = %H:%M
	label-charging = %percentage%%
	label-discharging = %percentage%%
	format-charging = <animation-charging> <label-charging>
	format-discharging = <animation-discharging> <label-discharging>
	format-charging-foreground = ${colors.foreground}
	label-charging-foreground = ${colors.foreground}
	format-discharging-foreground = ${colors.foreground}
	label-discharging-foreground = ${colors.foreground}
	format-full-prefix = " "
	format-full-prefix-foreground = ${colors.foreground}
	label-full-foreground = ${colors.foreground}
	animation-charging-0 = 
	animation-charging-1 = 
	animation-charging-2 = 
	animation-charging-3 = 
	animation-charging-4 = 
	animation-charging-foreground = ${colors.foreground}
	animation-charging-framerate = 500
    animation-discharging-0 = 
    animation-discharging-1 = 
    animation-discharging-2 = 
    animation-discharging-3 = 
    animation-discharging-4 = 
    animation-discharging-framerate = 1000
	animation-discharging-foreground = ${colors.foreground}
	click-left = bash ~/.startup -r


[module/jgmenu]
    type = custom/text
    content-padding = 2
    content = menu
    click-left = "jgmenu_run >/dev/null 2>&1 &"

[module/filesystem]
    type = internal/fs
    mount-0 = /
    interval = 10
    fixed-values = true
    spacing = 4
    format-mounted = <label-mounted>
    format-unmounted = <label-unmounted>
    label-mounted =   %percentage_used%%
    label-mounted-foreground = ${colors.foreground}
    label-unmounted = %mountpoint%: not mounted
    label-unmounted-foreground = ${colors.foreground}


