ac, aenaon, ambient black, at, automation, avant-garde, backlight, bash, black, bluetooth, chromosome needle, cmus, conky, cron, crontab, d, daw, dbus, dcd, debian, dlang, dualboot, efi, exo, fluidsynth, furia, goldendict, google plus, grub, guitar, guitar pro, ip range, iptv, kate, kde, kdevelop, klipper, kontinuum, last.fm, liblastfm, lifehack, linux, lv2, lyrics, math metal, midi, mocp, morowe, music, openbox, packaging, podcasts, polkit, post-black, post-metal, powerdevil, python, qsynth, qt, radio, review, script, scrobbler, scrobbling, secure boot, sequencer, smplayer, sound, stardict, synthesizer, tablatures, tag editor, the great old ones, tip, tooltip, tray, uefi, vsti, zeit

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

raw 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

raw code

That’s it. Restart your Openbox and ensure that everything works just fine.