1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 09:19:26 +00:00

[polybar] Add Syncthing status and improve output icon sizes

This commit is contained in:
2024-06-15 21:21:20 +02:00
parent 42647db6d2
commit 960573ae4e
9 changed files with 49 additions and 19 deletions

View File

@ -3,7 +3,7 @@
URL=${1:-1.0.0.1}
output=$(fping --quiet --outage --count=5 "$URL" 2>&1)
outage_output=" "
outage_output=""
outage_color="FFFFFF"
avg_output=""
avg_color="FFFFFF"
@ -28,7 +28,7 @@ else
fi
if [ -n "$outage_output" ] || [ -n "$avg_output" ]; then
echo "%{F#$outage_color}%{T5}${outage_output}%{F-}%{T-}%{F#$avg_color}%{T5} ${avg_output}%{F-}%{T-}"
echo "%{F#$outage_color}%{T2}${outage_output}%{F-}%{T-}%{F#$avg_color}%{T2} ${avg_output}%{F-}%{T-}"
else
echo ""
fi