diff --git a/.config/i3blocks/wifi b/.config/i3blocks/wifi index 6013735..9852cb5 100755 --- a/.config/i3blocks/wifi +++ b/.config/i3blocks/wifi @@ -19,4 +19,4 @@ network=$(iwgetid -r) printf "\uf9a1 %s (%s)" ${network} ${ip} # On click copy IP -[ -n "${BLOCK_BUTTON}" ] && echo -n "${ip}" | tr -d '\n' | xclip -selection c +[ -n "${BLOCK_BUTTON:-}" ] && echo -n "${ip}" | tr -d '\n' | xclip -selection c