first commit arch
This commit is contained in:
12
arch/polybar/scripts/pub-ip.sh
Executable file
12
arch/polybar/scripts/pub-ip.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# credits
|
||||
# https://linuxconfig.org/polybar-a-better-wm-panel-for-your-linux-system
|
||||
|
||||
IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
||||
|
||||
if pgrep -x openvpn > /dev/null; then
|
||||
echo VPN: $IP
|
||||
else
|
||||
echo $IP
|
||||
fi
|
||||
Reference in New Issue
Block a user