commit c9ec7caa11df384d85e00e501e5de7c176c25c0d
parent daf9c0401a4b46e72f56bde4955f8c4b56cf1744
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date: Tue, 19 Mar 2019 15:54:21 +0100
Remove retrieval of public IP address
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/bin/cowsay_ip.sh b/bin/cowsay_ip.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay && dig +short myip.opendns.com @resolver1.opendns.com | cowthink; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then cowsay -p VPN; fi'
+st -e watch -n 0.1 -t 'for i in `ip r`; do echo $i; done | grep -A 1 src | tail -1 | cowsay; if [ -d "/proc/sys/net/ipv4/conf/tun0" ]; then cowsay -b VPN; else cowsay -p no VPN; fi'
diff --git a/bin/dmenu_statusbar.sh b/bin/dmenu_statusbar.sh
@@ -8,7 +8,6 @@ fi
LOCALTIME=$(date +%Z%Y-%m-%dW%V%a%H:%M:%S)
UTC=$(TZ=UTC date +%Z%Y-%m-%dW%V%a%H:%M:%S)
IP="$(for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1)"
-PUBIP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
if [ -d "/proc/sys/net/ipv4/conf/tun0" ]
then
VPN="yes"
@@ -18,4 +17,4 @@ fi
TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))°C"
BAT="$(acpi -b | awk '{ print $4 " " }' | tr -d ',' | tr -d ' ')"
-echo -e "time=$LOCALTIME\nvol=$VOL\nip=$IP\npubip=$PUBIP\nvpn=$VPN\ntemp=$TEMP\nbat=$BAT\nutc=$UTC" | dmenu -fn "Sans:size=11"
+echo -e "time=$LOCALTIME\nvol=$VOL\nip=$IP\nvpn=$VPN\ntemp=$TEMP\nbat=$BAT\nutc=$UTC" | dmenu -fn "Sans:size=11"