Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.
/ rgb_linux Public archive

simple two python scripts for disabling and enabling scrolllock LED

Notifications You must be signed in to change notification settings

InsertX2k/rgb_linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

enable_led & disable_led

Two simple Python 3.x based scripts for toggling the status of the keyboard's scrolllock LED


Required Packages:

  • colorama: pip3 install colorama
  • pyinstaller: pip3 install pyinstaller
  • it probably only works on ubuntu based linux distributions only.

How to compile into distributable binaries?:

In order to compile these Python script files into Linux binaries, you must have pyinstaller installed, alongwith auto-py-to-exe when necessary

Quick Compilation Guide:

  • Download both of the scripts enable_led and disable_led
  • Make a working directory.
cd ~
mkdir working-dir
cd working-dir

  • Copy scripts from your Downloads folder to the working-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

License

these are just some basic 2 script files i don't have to put a license for them.

About

simple two python scripts for disabling and enabling scrolllock LED

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages