You are not logged in.
In case anyone wants a fancier base to build on, I got carried away while helping someone write something along these lines for their Cinnamon desktop and produced a little Python app which uses UPower and a GLib mainloop to react immediately to charger plug/unplug events.
It doesn't implement the low/critical distinction, but that could be added in two or three lines and the code's clean and commented with novices in mind.
(And I apologize for the thread necromancy. This thread has a non-trivial Google presence so I thought it was worthwhile.)
Last edited by ssokolow (2015-02-02 11:34:44)
Offline
thank you for this - indeed it's an old thread - but yes, this is still the top result on google - so thank you
Offline
Could have posted in Community Contributions instead of raising the dead - for the second time.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Mod note: split from https://bbs.archlinux.org/viewtopic.php?pid=1271343
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline