Simple daemon to adjust brightness base on whether a power supply is connected
Currently depends on xbacklight for functionality, but future versions will ideally include that functionality
make
./autodim
When started, autodim will save the current brightness. When a power supply is connected, the saved brightness will be restored. On the other hand, autodim will save current brightness and adjust screen brightness to 30% when a power supply is disconnected.