A lightweight user friendly tool to manage keyboard backlight (LED) in Wayland environments.
-
Keyboard Backlight Control: Type 'on' or 'off' on your terminal of choice.
-
Cross-Shell Support: Automatically sets up aliases ('on' and 'off') for your shell. Supported shells: Bash, Fish, Zsh.
-
GNOME Support: Automatic keyboard shortcuts for GNOME users.
- Clone the repository
git clone https://github.com/somniasum/wayland-backlight-led && \
cd wayland-backlight-led- Run script
Run the install script:
./install.shThis sets up everything needed.
Run the uninstall script:
./uninstall.shThis will remove all the installed files and configurations.
If on GNOME, you can use the default keyboard shortcuts to toggle the backlight:
Turn backlight on:
SUPER + SHIFT + ENTERTurn backlight off:
SUPER + CTRL + ENTERYou can change the shortcuts to your preferred choice. Just look through your keyboard settings to do so.
Alternatively, you can use the following on your terminal to toggle the backlight:
Turn backlight on:
onTurn backlight off:
offYou can change the aliases to your preferred choice. Just look through your shell config to do so.
You use a different shell from Bash, Fish, and Zsh. You can set the aliases manually in your shell config:
alias on='/usr/local/bin/backlight.sh on'
alias off='usr/local/bin/backlight.sh off'If the script returns and error [*] Error No scroll lock device found, make sure your keyboard supports scroll lock and that brightnessctl can detect it. Use the following to check:
brightnessctl -l | grep scrolllock