浏览代码

Add VPN status

DricomDragon 4 年之前
父节点
当前提交
5c8f906efe
共有 1 个文件被更改,包括 7 次插入0 次删除
  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"
+}