M .config/i3status/cmus.sh => .config/i3status/cmus.sh +8 -0
@@ 3,6 3,14 @@
i3status | while :
do
read line
+
+ ip addr | grep 10\\. > /dev/null
+ if [ $? -eq 1 ]; then
+ line="$line no vpn"
+ else
+ line="$line vpn ok"
+ fi
+
artist=$(cmus-remote -Q | grep ' artist ' | cut -d ' ' -f3-)
title=$(cmus-remote -Q | grep ' title ' | cut -d ' ' -f3-)
M .config/i3status/config => .config/i3status/config +0 -8
@@ 13,17 13,9 @@ order += "path_exists VPN"
volume master {
format = " vol %volume "
format_muted = " muted "
- device = "pulse:0"
}
ethernet _first_ {
format_up = " ethernet ok "
format_down = " no ethernet "
}
-
-path_exists VPN {
- format = " vpn ok "
- format_down = " no vpn "
- path = "/proc/sys/net/ipv4/conf/tun0"
-}
-