general {
        output_format = "i3bar"
        colors = true
        interval = 5
        color_good = "#b8bb26"
        color_bad = "#fb4934"
}

order += "volume master"
# order += "disk /"
# order += "path_exists VPN"
order += "load"
order += "run_watch SS"
order += "run_watch TOR"
order += "ipv6"
order += "wireless wlan0"
order += "ethernet eth0"
# order += "cpu_temperature 0"
order += "battery 0"
order += "tztime local"

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

ethernet eth0 {
        # if you use %speed, i3status requires the cap_net_admin capability
        format_up = "E: %ip"
        format_down = "E: down"
}

battery 0 {
        format = "%status %percentage - %remaining"
        format_down = "No battery"
        status_chr = "AC ⚡"
        status_bat = "BAT"
        status_unk = "?"
        status_full = "AC"
        path = "/sys/class/power_supply/BAT%d/uevent"
        low_threshold = 30
}

run_watch SS {
        pidfile = "/run/shadowsocks.pid"
}

run_watch TOR {
        pidfile = "/run/tor/tor.pid"
}

run_watch VPNC {
        # file containing the PID of a vpnc process
        pidfile = "/var/run/vpnc/pid"
}

path_exists VPN {
        # path exists when a VPN tunnel launched by nmcli/nm-applet is active
        path = "/proc/sys/net/ipv4/conf/tun0"
}

tztime local {
        format = "%a, %-m %B %H:%M"
}

load {
        format = "load: %1min, %5min, %15min"
}

cpu_temperature 0 {
        format = "T: %degrees °C"
        path = "/sys/devices/platform/coretemp.0/temp1_input"
}

disk "/" {
        format = "%free"
}

volume master {
        format = "♪: %volume"
        format_muted = "♪: muted (%volume)"
        device = "default"
        mixer = "Master"
        mixer_idx = 0
}
