#!/bin/sh
 
ans=$(zenity  --list  --text "I have a Keyboard with LED Backlighting, Please.." \
--radiolist  --column "Pick" --column "Output Type" TRUE Keyboard-LED-On FALSE Keyboard-LED-Off FALSE Keyboard-LED-AutoStart);
 
if [ "$ans" = "Keyboard-LED-On" ]
then
xset led
elif [ "$ans" = "Keyboard-LED-Off" ]
then
xset -led
elif [ "$ans" = "Keyboard-LED-AutoStart" ]
then
xset led && sudo cp /usr/share/keyboard-led/keyboard-led-autostart.desktop /etc/xdg/autostart/keyboard-led-autostart.desktop
fi
