Skip to content

profiles: add a config-profile IPC target - #4370

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:profile-ipc
Nov 21, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
Conava:profile-ipc

Conversation

@Conava

@Conava Conava commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a config-profile IPC target, so config profiles can be used from keybinds and scripts. It can list, apply, save, create, rename and remove profiles, and switch through them with next and prev. A profile can be passed by its id or by its name, as long as the name is unique.

I missed this in my initial implementation but I think this is a good addition for future integrations.

The target is called config-profile because profile is already taken by the profile picture.

Also the Control Center tile now uses the same next profile logic as the IPC instead of its own copy.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: docs(dms): document the config-profile IPC target dux-docs#219

Lets keybinds and scripts list, apply, cycle, save, create, rename and
delete config profiles. A profile is picked by id or by its exact name;
a name shared by several profiles is refused.

The Control Center tile's next-profile logic moves into the service as
cycle(), shared with the IPC next and prev. createProfile can skip the
Settings draft, so a profile created over IPC while a new one is being
edited does not take the draft's id and preview image.
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

One issue to fix before merge: helper functions inside the IpcHandler cause warnings on every load and expose _ready as a public IPC call.

  • Untyped helpers inside IpcHandler produce parse warnings on each load, and _ready becomes a public IPC call, quickshell/Services/ConfigProfileService.qml:773

Checked: the new config-profile IPC handler (resolving profiles by name or id, the create/rename/remove/save paths through createProfile/updateProfile/deleteProfile), cycle() wrapping in both directions and its reuse by the Control Center tile, the ignoreDraft change to createProfile and its existing callers, and how dux-qt-base registers IPC functions. The docs PR is linked (dux-docs#219). Model: claude-opus-5-5.

IpcHandler registers every function declared in it, so the untyped
helpers logged a parse error on each load and _ready showed up as a
public call. They now live on the service.
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier finding is fixed: the IPC helpers now live on the singleton (_ipcReady, _ipcCycle, _ipcResolve), so the IpcHandler only declares typed functions.

Checked: every config-profile IPC function (list, current, apply, next, prev, save, create, rename, remove), resolving a profile by id or by unique name, cycle() wrapping both ways with and without an active profile, the Control Center tile now calling cycle(1) with the same behavior as before, createProfile with ignoreDraft and its existing callers, rename going through rescope (keeps the stored data when the groups stay the same), the startup and lazy-scan path through ensureDefault, and IPC target name clashes. The docs PR is linked (dux-docs#219). Model: claude-opus-5-5.

@bbedward
bbedward merged commit 6b5c91d into duxlabs-dev:master Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants