Switched: Detect state changes in pipe

I am sitting in a café and the internet is flaky. The wifi is stable, though, so my dumb Xubuntu thinks that all is well, while a sturdy ping in a terminal window tells me otherwise.

This sucks.

A few minutes (cough) later, I am getting Desktop notifications when the …