mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-01-03 10:06:46 +00:00
[polybar] Change ping target for network_status module to 1.0.0.1
This commit is contained in:
parent
bcbf336712
commit
e2af60c2f4
@ -90,7 +90,7 @@ tail = true
|
|||||||
[module/network_status]
|
[module/network_status]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = ~/.config/polybar/scripts/network_status
|
exec = ~/.config/polybar/scripts/network_status
|
||||||
click-left = $TERMINAL_CMD "fping --elapsed --count 100 1.1.1.1"
|
click-left = $TERMINAL_CMD "fping --elapsed --count 100 1.0.0.1"
|
||||||
interval = 5
|
interval = 5
|
||||||
|
|
||||||
[module/vpn]
|
[module/vpn]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
URL=${1:-1.1.1.1}
|
URL=${1:-1.0.0.1}
|
||||||
|
|
||||||
output=$(fping --quiet --outage --count=5 "$URL" 2>&1)
|
output=$(fping --quiet --outage --count=5 "$URL" 2>&1)
|
||||||
outage_output=""
|
outage_output=""
|
||||||
|
Loading…
Reference in New Issue
Block a user