Power saving tool


I already use power-top and it has taught me that the biggest draws on my battery are as below:


So I created the tool above to enable me to turn off the undesired devices quickly when I go off-grid. I also have it popup automatically when I detach the cable, but that's a bit out of scope (hint: I use sway)

Here's the code (Python GTK3) – put it somewhere on your $PATH. Yes it's an improved version of what I posted here before (but GTK3 instead of tkinter and with extra keys 'All' and 'Refresh'. The later just re-checks the status of each 'device'.

and here's the config – put it in ~/.config/toggle-devices/config.json and edit to taste.

Share and enjoy!

submitted by /u/StrangeAstronomer
[link] [comments]