From 761c84863e8172a580fc12ab7ecea3c85f754844 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Thu, 29 Mar 2018 15:59:41 +0100 Subject: [PATCH] i3b/iface: fix repeated xclip invocation --- .config/i3/blocks/iface | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/i3/blocks/iface b/.config/i3/blocks/iface index f597580..c3219fa 100755 --- a/.config/i3/blocks/iface +++ b/.config/i3/blocks/iface @@ -55,6 +55,8 @@ case $BLOCK_BUTTON in break;; 2) curl -s https://api.ipify.org | tee >(xclip -i); break;; - *) echo "$LOCIP" | tee >(xclip -i); + 0|3) echo "$LOCIP" | tee >(xclip -i); + break;; + *) echo "$LOCIP" break;; esac