MControlCenter icon indicating copy to clipboard operation
MControlCenter copied to clipboard

CLI Feature

Open guillaumeboehm opened this issue 1 year ago • 3 comments

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 avatar Apr 16 '24 09:04 guillaumeboehm

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

mutchiko avatar Aug 15 '25 13:08 mutchiko

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.

guillaumeboehm avatar Aug 15 '25 13:08 guillaumeboehm

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)

mutchiko avatar Aug 15 '25 13:08 mutchiko