# ~/.config/i3status/config -- i3status config file
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Author: binaryDiv
# Host-specific config for: kanaya
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# (See "man i3status" for documentation.)

# ~~ General i3status settings
general {
    colors = true
    interval = 1
}


# ~~ Define order of status bar elements
order += "ethernet tun0"
order += "ethernet _first_"
order += "cpu_temperature 0"
order += "load"
order += "tztime local"
order += "volume master"


# ~~ Ethernet status
ethernet _first_ {
    format_up = "🌐 %ip (%speed)"
    format_down = "🌐 No Ethernet"
}

# ~~ VPN status via tun0 device
ethernet tun0 {
    format_up = "VPN: %ip"
    format_down = "No VPN"
    color_good = "#FF0000"
    color_bad = "#666666"
}

# ~~ Date and time
tztime local {
    format = "%Y-%m-%d %H:%M:%S"
}

# ~~ Volume control display
volume master {
    format = "🔉 %volume"
    format_muted = "🔇 %volume"
    device = "pulse"
}

# ~~ CPU temperature
cpu_temperature 0 {
    format = "%degrees °C"
    format_above_threshold = "🔥 %degrees °C"
    max_threshold = 70
    path = "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input"
}

# ~~ CPU average load
load {
    format = "%1min"
}

