Skip to content

dms: fill in the optional device argument for brightness ipc calls - #4096

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Mario-Mohar:fix/brightness-ipc-device
Nov 3, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Mario-Mohar:fix/brightness-ipc-device

Conversation

@Mario-Mohar

Copy link
Copy Markdown
Contributor

Description

dms ipc call brightness increment 5 failed because the handlers need a second device argument, and Quickshell's IpcHandler has no optional arguments. The CLI now adds the empty device argument before the call, for set, increment, decrement and the three exponential functions. increment 5 "" and a named device keep working, and other targets are not touched. I left the embedded binds as they are.

Type of change

  • New feature (non-breaking change that adds functionality)

Related issues

Fixes #3870

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean

I ran the new table test and the tests in core/cmd/dms. I did not run it against a live shell.

@github-actions github-actions Bot added core Go daemon and CLI under core/ feature labels Nov 3, 2026
@bbedward
bbedward merged commit 0b42434 into duxlabs-dev:master Nov 3, 2026
4 checks passed
purian23 pushed a commit that referenced this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Go daemon and CLI under core/ feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

brightness IPC: make the device argument optional (increment 5 without "")

2 participants