A script that displays a ping result. It also shows a colored icon.
[module/info-pingrtt] type = custom/script exec = ~/polybar-scripts/info-pingrtt.sh interval = 10