Decrease Laptop Screen Brightness When Unplugged
Feature summary
An option to automatically increase / decrease screen brightness when the AC adapter is unplugged / re-plugged, to save battery without having to do so manually.
How would you like it to work
There should be an option/slider in the gnome-settings to specify minimum and maximum brightness.
It can be set using a udev rule in the backend:
ACTION=="change", KERNEL=="AC0", SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="/usr/bin/brightnessctl s 30%%"
ACTION=="change", KERNEL=="AC0", SUBSYSTEM=="power_supply", ATTR{online}=="1", RUN+="/usr/bin/brightnessctl s 60%%"