Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

W4YBACL3D

A lightweight user friendly tool to manage keyboard backlight (LED) in Wayland environments.

Features

  1. Keyboard Backlight Control: Type 'on' or 'off' on your terminal of choice.

  2. Cross-Shell Support: Automatically sets up aliases ('on' and 'off') for your shell. Supported shells: Bash, Fish, Zsh.

  3. GNOME Support: Automatic keyboard shortcuts for GNOME users.

Installation

Steps

  1. Clone the repository
git clone https://github.com/somniasum/wayland-backlight-led && \ 
cd wayland-backlight-led
  1. Run script

Run the install script:

./install.sh

This sets up everything needed.

Uninstallation

Run the uninstall script:

./uninstall.sh

This will remove all the installed files and configurations.

Usage

GNOME

If on GNOME, you can use the default keyboard shortcuts to toggle the backlight:

Turn backlight on:

SUPER + SHIFT + ENTER

Turn backlight off:

SUPER + CTRL + ENTER

You can change the shortcuts to your preferred choice. Just look through your keyboard settings to do so.

Aliases

Alternatively, you can use the following on your terminal to toggle the backlight:

Turn backlight on:

on

Turn backlight off:

off

You can change the aliases to your preferred choice. Just look through your shell config to do so.

Configuration

Unsupported Shell Configuration

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'

Troubleshooting

No Scroll Lock Device Found

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

About

An alternative to 'xset' in Wayland for keyboard backlight LED

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Contributors

Languages