earthquaked
is an earthquake monitoring daemon that runs commands you specify when Early Earthquake Warning is annouced.
sh
$ earthquaked
With cargo, you can install earthquaked
by executing:
sh
$ cargo install earthquaked
earthquaked
searches $HOME/.config/earthquaked/earthquaked.yaml
for a configuration file.
The example is available here