Minor update to 2 polybar scripts
This commit is contained in:
parent
b5699f45c6
commit
e742b4fb74
@ -493,7 +493,7 @@
|
|||||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC bash
|
#+BEGIN_SRC bash
|
||||||
yay -Sy && \
|
yay -Sy > /dev/null 2>&1 && \
|
||||||
package_nb=`yay -Qu 2> /dev/null | wc -l`;
|
package_nb=`yay -Qu 2> /dev/null | wc -l`;
|
||||||
|
|
||||||
if [ "$package_nb" -eq "0" ]; then
|
if [ "$package_nb" -eq "0" ]; then
|
||||||
@ -672,7 +672,7 @@
|
|||||||
connection=$(sudo wg show "$config" 2>/dev/null | head -n 1 | awk '{print $NF }')
|
connection=$(sudo wg show "$config" 2>/dev/null | head -n 1 | awk '{print $NF }')
|
||||||
|
|
||||||
if [ "$connection" = "$config" ]; then
|
if [ "$connection" = "$config" ]; then
|
||||||
echo "%{F#859900} $config%{F-}"
|
echo "%{F#859900}%{F-}"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user