From 67a1087e24da13b78461b0ee5b3dbae6c0cc210d Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 11 Feb 2022 19:46:16 +0100 Subject: [PATCH] Simply use curl to get public IP --- dotfiles/i3/blocks | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dotfiles/i3/blocks b/dotfiles/i3/blocks index 39636c0..1f7dc30 100644 --- a/dotfiles/i3/blocks +++ b/dotfiles/i3/blocks @@ -75,10 +75,9 @@ interval=900 command=scripts/crypto ZIL -b EUR -r 5 interval=900 -[protonvpn] +[pub-ip] interval=5 -LABEL_ON= -LABEL_OFF= +command=echo "IP: $(curl ifconfig.me)" [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))"