bjesus / wttrbar

Custom module for showing the weather in Waybar, using the great wttr.in
MIT License
141 stars 24 forks source link

Make module disappear when network disconnected #64

Closed vaskark closed 1 week ago

vaskark commented 1 week ago

Is there any way to make the wttrbar module disappear when the network is disconnected? Thanks.

bjesus commented 1 week ago

check "exec-if": https://github.com/Alexays/Waybar/wiki/Module:-Custom you can put whatever command there that fails if the network is down, and succeeds if the network is working.

vaskark commented 1 week ago

Many thanks.