Polybar: Only check for weather if we have an internet connection
This commit is contained in:
parent
8e7643f352
commit
5a71213cc8
@ -423,6 +423,7 @@ ramp-volume-2 =
|
|||||||
[module/weather-mini]
|
[module/weather-mini]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = $HOME/.config/polybar/weather.sh
|
exec = $HOME/.config/polybar/weather.sh
|
||||||
|
exec-if = wget -q --spider http://www.startpage.com/
|
||||||
interval = 60
|
interval = 60
|
||||||
|
|
||||||
[module/wlan-network]
|
[module/wlan-network]
|
||||||
|
Reference in New Issue
Block a user