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:
Save it as
/opt/bin/backlight. Don’t forget to make it executable.
Add keybindings to
That’s it. Restart your Openbox and ensure that everything works just fine.