Explorar o código

Add VPN status

DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
5c8f906efe
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      Install/Templates/i3status/config

+ 7 - 0
Install/Templates/i3status/config

@@ -16,6 +16,7 @@ order += "disk /"
 order += "ipv6"
 order += "wireless _first_"
 order += "ethernet _first_"
+order += "path_exists VPN"
 order += "volume master"
 order += "battery 0"
 order += "tztime local"
@@ -65,3 +66,9 @@ volume master {
 	mixer = "Master"
 	mixer_idx = 0
 }
+
+path_exists VPN {
+	format_down = ""
+	format = "⛢ %title"
+	path = "/proc/sys/net/ipv4/conf/tun0"
+}