Backlight control in your WM (window manager)
8 years, 9 months ago
We will be using KDE’s Powerdevil so the first thing that we want to do is to add it to autostart.sh: qdbus org.kde.kded5 /kded org.kde.kded5.loadModule powerdevil &
Script that actually will do all the job:
enable JavaScript to see the code
Save it as /opt/bin/backlight
. Don’t forget to make it executable.
Add keybindings to rc.xml
:
enable JavaScript to see the code
That’s it. Restart your Openbox and ensure that everything works just fine.