This commit is contained in:
Eduard Tolosa 2019-02-16 01:06:52 -05:00
parent a03a105445
commit 929696153b

View file

@ -15,19 +15,20 @@ general {
# order += "disk /"
order += "wireless _first_"
order += "ethernet _first_"
order += "path_exists VPN"
order += "load"
order += "cpu_temperature 0"
order += "tztime local"
order += "battery all"
wireless _first_ {
format_up = "W: (%quality at %essid) %ip"
format_up = "W: (%quality at %essid)"
format_down = "W: down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_up = "E: Up (%speed)"
format_down = "E: down"
}
@ -43,6 +44,12 @@ load {
format = "CPU load: %1min"
}
path_exists VPN {
# path exists when a VPN tunnel launched by nmcli/nm-applet is active
format = "VPN: active"
format_down= "W: VPN inactive"
path = "/proc/sys/net/ipv4/conf/tun0"
}
# disk "/" {
# format = "%avail"
# }
@ -51,5 +58,5 @@ cpu_temperature 0 {
format = "CPU Temp: %degrees °C"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
max_threshold = "70"
format_above_threshold = "CPU Temp Warning: %degrees °C"
format_above_threshold = "CPU Temp: %degrees °C"
}