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

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


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


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

# ~~ Wireless status
wireless _first_ {
    format_up = "📶 %ip (%essid ~%quality)"
    format_down = "📶 down"
}

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

# ~~ Battery status
battery 0 {
    format = "%status %percentage %remaining"

    status_chr = "⚡"
    status_bat = "🔋"
    status_unk = "❓"
    status_full = "🔌"

    last_full_capacity = true
    integer_battery_capacity = true
    low_threshold = 30
}



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

# ~~ Week number
tztime week {
    format = "📅 KW %V"
}

# ~~ 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
}

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

