1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

polybar: fix gateway ping for v4-only networks

This commit is contained in:
Joe Groocock 2020-03-22 09:54:42 +00:00
parent 874e177b8f
commit ce2d5e267a
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -78,7 +78,7 @@ click-left = systemd-run --user --no-block "i3-sensible-terminal -r floating-ter
[module/gateway]
type = custom/script
exec = for v in 4 6; do ip -$v r show default | xargs -l1 sh -c 'fping --retry=1 --quiet --iface "$4" "$2"'; done && echo  || echo '%{F#f41f1c}%{F-}'
exec = for v in 4 6; do ip -$v r show default | xargs -rL1 sh -c 'fping --retry=1 --quiet --iface "$4" "$2"'; done && echo  || echo '%{F#f41f1c}%{F-}'
interval = 2
format-prefix = " "
format-prefix-foreground = ${colours.icon}