-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Suggestion] Script-based event handling #36
Comments
That is a great feature! I was thinking about adding some automation to this app, but wasn't sure if there is a need for that. There are a couple of things before this can be done:
What I didn't know about is that there is a need to run custom scripts. Definitely added to the list, but it will probably take some time (not gonna lie). |
I just upgraded to 1.6. Excellent work on the Power plan customization and Nvidia GPU deactivator. Greatly appreciated! |
Hi,
Let me preface this by thanking you and @ViRb3 for the great work on a lightweight Vantage alternative. Been an avid user of Legion Toolkit since the first release.
In v1.3.1, I can see Legion Toolkit is now responding to the FN+Q shortcut and setting the default Legion Power Plan for that Smart Fan Mode.
Since versions prior to v1.3.0 didn't provide this behaviour, I created a simple Powershell script which to achieve this.
Over time, I further customized the laptop behaviour:
Now that Legion Toolkit is also changing power plans on FN+Q, that conflicts with my custom scripts.
So I was thinking, since Legion Toolkit now runs in the background and is already listening to Lenovo WMI events, maybe a similar script-based event handling feature could be a useful addition for power users?
Benefits
Proposed Behaviour
LENOVO_GAMEZONE_SMART_FAN_MODE_EVENT
,LENOVO_GAMEZONE_POWER_CHARGE_MODE_EVENT_EVENT
, etc).bat
,.ps1
,.vbs
,.bat
, in ascripts
folder adjacent to LegionToolkit.exe. Filter scripts to those which are prefixed with the event name.The intention behind this approach is to make it easy for developers to distribute scripts which users can simply copy and paste to LegionToolkit folder.
For a working proof of concept, plase have a look at https://github.com/ldstein/legion-watcher:
If this sounds too out of scope, I'd like to suggest a menu option to disable Legion Toolkit's default FN+Q event handling. This would make it possible to override the default behaviour via third-party scripts/tools as described above.
Look forward to your thoughts!
The text was updated successfully, but these errors were encountered: