Simply use curl to get public IP

This commit is contained in:
flyingscorpio@clevo 2022-02-11 19:46:16 +01:00
parent 01c088d308
commit 67a1087e24

View file

@ -75,10 +75,9 @@ interval=900
command=scripts/crypto ZIL -b EUR -r 5 command=scripts/crypto ZIL -b EUR -r 5
interval=900 interval=900
[protonvpn] [pub-ip]
interval=5 interval=5
LABEL_ON=<span foreground='#17d427'>  </span> command=echo "IP: $(curl ifconfig.me)"
LABEL_OFF=<span foreground='#c90f1f'>  </span>
[battery] [battery]
command=echo " $(upower -d | grep 'percentage' | awk '{print $2}' | head -n 1) ($(upower -d | grep 'time to empty' | awk -F: '{print $2}' | awk '{print $1,$2}' | head -n 1))" command=echo " $(upower -d | grep 'percentage' | awk '{print $2}' | head -n 1) ($(upower -d | grep 'time to empty' | awk -F: '{print $2}' | awk '{print $1,$2}' | head -n 1))"