feat: add terminal CLI (damx) - #266
Open
elieltondias wants to merge 1 commit into
Open
elieltondias wants to merge 1 commit into
elieltondias wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a terminal-only companion app,
DivAcerManagerMax-CLI(installed as thedamxcommand), exposing every GUI feature from the command line — with human-readable and--jsonoutput for scripting. The GUI (DAMX) is untouched and both clients run side by side against the same daemon.What's included
DivAcerManagerMax-CLI/project (net9.0, zero NuGet dependencies, single-file publish →DivAcerManagerMax-CLIbinary):status,features,profile get|set|list(eco/quiet/balanced/performance/turbo)fan get|auto|max|set,battery calibration|limiter,usb get|setkbd zone|effect|backlight,system lcd|boot|info,power,monitor,daemon restart|restart-drivers|version|logs,internals force-*|get/set-modprobe,--jsonon every commandDAMXCommon/library: single copy of the daemon protocol (DAMXClient) referenced by GUI and CLI — no duplication, no behavior change.damx(CLI) andDAMX(GUI) coexist, uninstall cleans both. CLI is terminal-only (no icon, no launcher entry).DAMX-CLI/folder in release tarballs, dual version detection (GUI + CLI), both apps built inmain.yml/workflow2.yml.DAMX-component prefix.Installation / usage
./setup.sh # 1 = GUI+CLI, 6 = CLI only, 7 = GUI only
damx status
damx profile set turbo
damx fan set --cpu 60 --gpu 80
damx --json status
Compatibility notes
/opt/damx/gui,DAMX,damx.desktop) and the Nitro/PredatorSense button behavior are unchanged.Validation
dotnet buildsolution: 0 errors; both apps publish as single files--version,monitor --oncewith live sensors, graceful error without daemon, exit codes 0/1/2)bash -non all three setup scriptssetup.shwith the daemon running (needs hardware)