Code: Select all
[root @ debian ~] touch led_keyboardCode: Select all
#!/bin/bash
if [ -f /tmp/keyboard_light ]; then
xset -led 3 && rm /tmp/keyboard_light
else
xset led && touch /tmp/keyboard_light
fiCode: Select all
[root @ debian ~] chmod +x led_keyboardFill in the Name field: Keyboard lighting (or whatever name you want), fill in the Command field: bash /path/to/file/led_keyboard led on
Press the Apply button and notice the added shortcut under Custom Shortcuts.
Click on Disable and add the desired key combination to execute the command.
Restart the computer and test the key combination after starting the operating system.
