# i3status configuration file.
# see "man i3status" for documentation.
# or https://i3wm.org/i3status/manpage.html

# 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 = 5
    color_good = "#fd68d5"
    color_bad = "#2AFF00"
    color_degraded = "#FE1805"
    markup = "pango"
}

order += "cpu_usage"
order += "load"
order += "memory"
order += "disk /"
order += "disk /media/drive2"
order += "disk /media/drive3"
order += "wireless _first_"
order += "ethernet _first_"
order += "path_exists vpn"
order += "battery all"
order += "time"
order += "volume master"
order += "path_exists screensaver"

cpu_usage {
    format = " cpu usg %usage "
    max_threshold = 75
}

load {
    format = " load %1min "
    max_threshold = "5.0"
}

memory {
    format = " ☰ free: %available (%percentage_free) "
    threshold_degraded = "5G"
    format_degraded = "WARNING: ONLY %available FREE MEMORY"
}

disk "/" {
    format = " / ⛁ free: %avail (%percentage_avail) "
    low_threshold = 10
    threshold_type = "percentage_avail"
    format_below_threshold = "WARNING: / ⛁ %avail (%percentage_avail) "
}

disk "/mnt/nas" {
    format = " nas ⛁ free: %avail (%percentage_avail) "
    low_threshold = 5
    threshold_type = "percentage_avail"
#    format_below_threshold = "WARNING: ⛁ drive2 %avail (%percentage_avail) "
}

#disk "/media/drive2" {
#    format = " drive2 ⛁ %avail (%percentage_avail) "
#    low_threshold = 5
#    threshold_type = "percentage_avail"
##    format_below_threshold = "WARNING: ⛁ drive2 %avail (%percentage_avail) "
#}
#
#disk "/media/drive3" {
#    format = " drive3 ⛁ %avail (%percentage_avail) "
#    low_threshold = 5
#    threshold_type = "percentage_avail"
#}

path_exists "vpn" {
    #format = " %title: %status "
    format = " %title "
    #path = "/proc/sys/net/ipv4/conf/tun0"
    path = "/proc/sys/net/ipv4/conf/proton0"
    format_down = " vpn↓ "
}

wireless _first_ {
    format_up = " W: (%quality at %essid @ %bitrate) %ip "
    format_down = " 📻↓ "
}

ethernet _first_ {
    format_up = " %ip %speed "
    format_down = " ⟴↓ "
}

battery all {
    format = " ⏻ %status %percentage %remaining %emptytime "
    format_down = "No battery"
    last_full_capacity = true
    integer_battery_capacity = true
    status_chr = "⚡"
    status_bat = "☉"
    status_unk = "⌄"
    status_full = "☀"
    low_threshold = 15
    threshold_type = time
}

time {
    format = " %Y.%m.%d @ %H:%M "
}

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

path_exists "screensaver" {
    format = " <span foreground='#2aff00'>screensaver disabled</span> "
    path = "/tmp/screensaver_off.tmp"
    format_down = " <span foreground='#fd68d5'>⎚↓</span> "
}
