We will be using KDE’s Powerdevil so the first thing we want to do is adding it to autostart.sh:
qdbus org.kde.kded5 /kded org.kde.kded5.loadModule powerdevil &
Script that actually will do 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.