Minor update to 2 polybar scripts
This commit is contained in:
parent
5162ebfd3b
commit
7fc6093be2
@ -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