I've never heard of etcd being described as a "leader election tool." I'm sure it works, just not sure that's why it was written or how that might even look.
Also, as pleased as I am that pijul exists and as grateful as I am for the tireless efforts of the author of the post in trying to bring it about, I am less than enthused that an i3 notification bar and a laptop is a major contributor in the supply chain of backups for a server that people are supposed to trust as the final resting place of their code. There are several free-ish tools out there that allow this type of automation to take place that are more reliable, e.g. CircleCI.