Commit eb0ffe41 authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Added path_exists check for VPN (check if "/sys/class/net/tun0/dev_id" exists).

parent 1fbb996d
...@@ -23,10 +23,11 @@ order += "ethernet _first_" ...@@ -23,10 +23,11 @@ order += "ethernet _first_"
order += "cpu_usage" order += "cpu_usage"
#order += "disk /" #order += "disk /"
order += "diskdata" order += "diskdata"
order += "timer"
#order += "battery all" #order += "battery all"
order += "battery_level" order += "battery_level"
# order += "load" # order += "load"
order += "timer" order += "path_exists VPN"
order += "external_script" order += "external_script"
order += "tztime local" order += "tztime local"
# order += "ipv6" # order += "ipv6"
...@@ -86,6 +87,7 @@ net_rate { ...@@ -86,6 +87,7 @@ net_rate {
format_value = "[\?min_length=10 {value:.1f} {unit}]" format_value = "[\?min_length=10 {value:.1f} {unit}]"
si_units = "True" si_units = "True"
format = "{down}⇣ {up}⇡" format = "{down}⇣ {up}⇡"
interfaces_blacklist = "lo"
} }
battery all { battery all {
...@@ -121,3 +123,10 @@ tztime local { ...@@ -121,3 +123,10 @@ tztime local {
# format = "%Y-%m-%d %H:%M:%S" # format = "%Y-%m-%d %H:%M:%S"
format = " %d/%m %H:%M:%S" format = " %d/%m %H:%M:%S"
} }
path_exists VPN {
format = "%title"
format_down = ""
color_good = "#00ff00"
path = "/sys/class/net/tun0/dev_id"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment