Changes Clevo (Sager) Laptop's Keyboard Backlit LED colour based on the current open app.
Works best with i3wm (use the i3wm
branch).
- Driver from https://bitbucket.org/tuxedocomputers/clevo-xsm-wmi
xmlstarlet
i3ipc
(from pip)
- Do
groupadd --system clevo_backlight
(use sudo for permission problems) - Do
usermod --append --groups clevo_backlight $USER
(again sudo for perms). - Copy the contents of
setclevopermissions.service
to/etc/systemd/system/setclevopermissions.service
- Do
systemctl enable setclevopermissions
- Add
change_kb_color.py
to i3 startup by addingexec /path/to/change_kb_color.py
to~/.config/i3/config
- Copy the folder
clevo_fx
to~/.config/
- Modify
~/.config/clevo_fx/apps.xml
to suit your needs (usexprop
and click on window, the secondWM_CLASS(STRING)
property is to be used.
Check it live in action below: