Two simple Python 3.x based scripts for toggling the status of the keyboard's scrolllock LED
colorama
:pip3 install colorama
pyinstaller
:pip3 install pyinstaller
- it probably only works on ubuntu based linux distributions only.
In order to compile these Python script files into Linux binaries, you must have pyinstaller
installed, alongwith auto-py-to-exe
when necessary
- Download both of the scripts
enable_led
anddisable_led
- Make a working directory.
cd ~
mkdir working-dir
cd working-dir
- Copy scripts from your
Downloads
folder to theworking-dir
you have just made.
cp enable_led.py ~/working-dir/enable_led.py
cp disable_led.py ~/working-dir/disable_led.py
- Compile them with
pyinstaller
pyinstaller --onefile enable_led.py
pyinstaller --onefile disable_led.py
- Copy them into
/usr/bin
for easier access later.
sudo cp -fv ./enable_led /usr/bin/enable_led
sudo cp -fv ./disable_led /usr/bin/disable_led
I don't think I have to tell you that you must have to enter your sudo
password to copy to /usr/bin
.
- Enjoy!
# to enable keyboard backlight
enable_led
# to disable keyboard backlight
disable_led
# no sudo needed
these are just some basic 2 script files i don't have to put a license for them.