This tutorial will guide you through the steps necessary to configure the function keys F2, F3, and F4 to control the keyboard backlight on your ASUS ROG Strix with Arch Linux using asusctl and sxhkd.
Warning
If you are using Ubuntu or another Debian-based distribution with GNOME, do not follow this guide.
Instead, go to bash/README.md for the proper instructions for your system.
- Arch Linux
asusctlinstalled from AURsxhkdconfigured and running- Existing directory
~/.config/bspwm/sxhkdrc. If you do not have bspwm, failing that, know the configuration directory ofsxhkd.
If you don't have yay installed, install it first:
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -siThen, install asusctl:
yay -S asusctl-
Create the directory
~/.local/binif it doesn't exist:mkdir -p ~/.local/bin -
Copy the file
cycle_led_modes.sh:cp cycle_led_modes.sh ~/.local/bin/cycle_led_modes.sh -
Make the script executable:
chmod +x ~/.local/bin/cycle_led_modes.sh
-
Move to the directory where the
append_to_sxhkdrc.shandsxhkdrc_appendfile is -
Run the script to append the configurations to
sxhkdrc:./append_to_sxhkdrc.sh
If your
sxhkdrcfile is in a different location, provide the path as an argument:./append_to_sxhkdrc.sh /path/to/your/sxhkdrc
cycle_led_modes.sh: Script to cycle through keyboard lighting modes.sxhkdrc_append: Configurations to append tosxhkdrc.append_to_sxhkdrc.sh: Script to append the configurations tosxhkdrc.