Skip to content

tqqk/OpenRGBLightAfterKeyboardReconnect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

OpenRGB Light After Keyboard Reconnect

By default OpenRGB doesn't automatically rescan after you reconnect your keyboard. So when you have a keyboard which doesn't have a memory for the RGB profile, then if you reconnect your keyboard (for me it's disconecting my laptop from docking station and connecting it after few hours), the OpenRGB software doesn't detect the reconnect and you need to open OpenRGB, click on rescan and then load profile. That's why I've made this python script restarts the OpenRGB software (https://openrgb.org) when you reconnect your keyboard.


How to modify the script


  1. Replace the PROFILE_NAME (line 4) with our own profile name in the OpenRGB software


How to run the script/program

A. You can run the script using python

  • Use the command python program.py to run the program, but that's going to run with a command line open, so that's not ideal (I recommend the option B.)

B. You can run the script/program by creating .exe file

  • Download or copy the python script
  • Use the command pyinstaller -w --onefile --noconsole program.py to create the .exe file (Don't forget to use the -w --onefile --noconsole attributes to run the program without any console window)


How to make the script/program run on startup

  1. Create a shortcut of the .exe program
  2. Press Windows key + R, and type shell:startup
  3. Copy and paste the shortcut for the .exe to the startup folder


How to stop the script/program from running

  1. Open Task Manager
  2. Find the .exe and click on End Task
  3. If you have it in the Startup folder, then remove it


v2.2

About

This python script restarts the OpenRGB software when you reconnect your keyboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages