Skip to content

Conversation

@guillaumeboehm
Copy link

This PR adds a CLI Object and options parsing.

The window "show" behavior is changed from "newConnection" to a socket message.

If CLI options are given to the program, the program will not show the window and only execute the commands. If a mcontrolcenter server exists a socket message is then sent to refresh the window data.

This is a POC with the CoolerBoost toggle only. I will implement the rest after a first review.

guillaumeboehm and others added 5 commits August 15, 2025 11:39
- Only the CoolerBoost for now as a POC - Modified some lines that static analyzer was complaining about - Add Options class to handle arg parsing and different option values
Less performant but more readable
@mutchiko
Copy link
Collaborator

I can't help but wonder, why not write directly to the sysfs files exposed by msi-ec?

@guillaumeboehm
Copy link
Author

I can't help but wonder, why not write directly to the sysfs files exposed by msi-ec?

Well I could, but I figured it wouldn't be too much effort to expand mcontrolcenter with cli support for less savy people.
Although I can't find the motivation to complete it heh ^^'
I also wanted to keep my C++ warm at the time I started this, so the timing was right.

@mutchiko
Copy link
Collaborator

I can't find the motivation to complete it heh

can't blame you for that, hopefully with msi-wmi-platform module things would become less complicated (also for scripting)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants