From e742b4fb7488e220c78a86b4d44cad070c94a17a Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 1 Apr 2020 17:23:45 +0200 Subject: [PATCH] Minor update to 2 polybar scripts --- dotfiles/polybar.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/polybar.org b/dotfiles/polybar.org index 30303d5..3e8d9d5 100644 --- a/dotfiles/polybar.org +++ b/dotfiles/polybar.org @@ -493,7 +493,7 @@ :header-args+: :shebang "#!/usr/bin/env bash" :END: #+BEGIN_SRC bash - yay -Sy && \ + yay -Sy > /dev/null 2>&1 && \ package_nb=`yay -Qu 2> /dev/null | wc -l`; if [ "$package_nb" -eq "0" ]; then @@ -672,7 +672,7 @@ connection=$(sudo wg show "$config" 2>/dev/null | head -n 1 | awk '{print $NF }') if [ "$connection" = "$config" ]; then - echo "%{F#859900} $config%{F-}" + echo "%{F#859900}%{F-}" else echo "" fi