|
@@ -2,6 +2,16 @@
|
|
|
|
|
|
div="%{F#0092ff}<>%{F-}%{B-}"
|
|
div="%{F#0092ff}<>%{F-}%{B-}"
|
|
|
|
|
|
|
|
+aws_vpn_status() {
|
|
|
|
+ INTERFACE_CHECK=$(ip a | grep tun0)
|
|
|
|
+ if [[ ! -z $INTERFACE_CHECK ]]; then
|
|
|
|
+ INTERFACE_VALUE=$(echo $INTERFACE_CHECK | tail -n1 | awk '{print $15}')
|
|
|
|
+ echo -n "AWS VPN IP: $INTERFACE_VALUE"
|
|
|
|
+ else
|
|
|
|
+ echo -n "AWS VPN Down"
|
|
|
|
+ fi
|
|
|
|
+}
|
|
|
|
+
|
|
Clock() {
|
|
Clock() {
|
|
DATETIME=$(date "+%a %b %d, %T")
|
|
DATETIME=$(date "+%a %b %d, %T")
|
|
|
|
|
|
@@ -94,6 +104,6 @@ soundState() {
|
|
|
|
|
|
while true; do
|
|
while true; do
|
|
sleep 1
|
|
sleep 1
|
|
- echo "%{l} $(Clock) $div $(cpuTemp) $div $(loadAvg) $div $(wifiInfo) $div $(ethPort) $div $(diskFree) $div $(soundState) $div $(batteryInfo) $div "
|
|
|
|
|
|
+ echo "%{l} $(Clock) $div $(cpuTemp) $div $(loadAvg) $div $(wifiInfo) $div $(ethPort) $div $(diskFree) $div $(soundState) $div $(batteryInfo) $div $(aws_vpn_status)"
|
|
sleep 0.5
|
|
sleep 0.5
|
|
done
|
|
done
|