How to trigger a command on Linux when power switches from AC to battery | Hacker News Reader