general {
        colors = true
        interval = 1
}

order += "ipv6"
order += "wireless wlp36s0"
order += "ethernet enp33s0"
order += "path_exists VPN"
order += "battery 0"
order += "disk /"
order += "memory"
order += "cpu_usage"
order += "tztime local"
order += "tztime adelaide"

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

ethernet enp33s0 {
        format_up = "E: %ip (%speed)"
        format_down = "E: down"
}

battery 0 {
        format = "%status %percentage %remaining %emptytime"
        format_down = "No battery"
        status_chr = "⚡ CHR"
        status_bat = "🔋 BAT"
        status_unk = "? UNK"
        status_full = "☻ FULL"
        path = "/sys/class/power_supply/BAT%d/uevent"
        low_threshold = 10
}

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 = "%Y-%m-%d %H:%M:%S"
        hide_if_equals_localtime = true
}

tztime adelaide {
        format = "%Y-%m-%d %H:%M:%S %Z"
        timezone = "Australia/Adelaide"
}

cpu_usage {
	format = "all: %usage"
}

memory {
        format = "%used"
        threshold_degraded = "10%"
        format_degraded = "MEMORY: %free"
}

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