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