# i3status configuration file.
# see "man i3status" for documentation.

# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!

general {
        colors = true
        interval = 1
}

# order += "ipv6"
# order += "disk /"
order += "wireless _first_"
order += "ethernet _first_"
order += "path_exists VPN"
order += "load"
order += "cpu_temperature 0"
order += "tztime local"
order += "battery all"

wireless _first_ {
        format_up = "W: (%quality at %essid)"
        format_down = "W: down"
}

ethernet _first_ {
        # if you use %speed, i3status requires root privileges
        format_up = "E: Up (%speed)"
        format_down = "E: down"
}

battery all {
        format = "%status %percentage"
        status_chr = "⚡ CHR"
        status_bat = "🔋 BAT"
        status_full = "☻ FULL"
        last_full_capacity = true
}

tztime local {
        format = "%Y-%m-%d %H:%M"
}

load {
        format = "CPU load: %1min"
}

path_exists VPN {
        # path exists when a VPN tunnel is active
        format = "VPN: active"
        format_down= "VPN inactive"
        path = "/proc/sys/net/ipv4/conf/tun0"
}
# disk "/" {
#         format = "%avail"
# }

cpu_temperature 0 {
        format = "CPU Temp: %degrees °C"
        path = "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input"
        max_threshold = "70"
        format_above_threshold = "CPU Temp: %degrees °C"
}
