Repository navigation
Conversation
Profiles were always listed by creation date. They can now be dragged to a new place in the Settings profile grids (a new grid mode of dux-qml-common's DReorderList), moved with Move left/right in the card menu or Ctrl+arrows (up/down in the one-column layout), and moved over IPC with `config-profile move <profile> <position>`. The order is one list of ids in session.json, so profiles, exports and imports don't carry it; profiles missing from it follow by creation date. Next/prev, the Control Center tile, IPC list and `dms profile list` follow it. Reset to when applied restores the active profile's groups to the values they had when it was applied. The snapshot is written to the cache dir, read back with the same checks as a profile file and migrated like one, so it survives restarts. With sync on the restored values are saved into the profile; with sync off the file is left alone.
Claude reviewNo issues found. As the description says, |
|
Please rebase |
…eset # Conflicts: # dux-qml-common # quickshell/Common/settings/ConfigProfiles.js
Claude reviewNo issues found. The upstream merge resolved cleanly. The |
Claude reviewNo issues found. The latest upstream merge moved |
…eset # Conflicts: # quickshell/Services/ConfigProfileService.qml # quickshell/tests/config-profile-service.test.mjs
Claude reviewNo issues found. The latest upstream merge brings in the profile switch transition ( |
Description
This adds two things to config profiles: changing their order and resetting the active profile to how it was when it was applied.
Profiles can be dragged to a new place in the profile grid (on the Profiles page and in the profiles card in Wallpaper & colors), or moved with Ctrl+Left/Right on a focused card. In the one-column layout of a narrow Settings window these become Move up and Move down. The order is used everywhere profiles are listed: next and previous profile, the Control Center tile, IPC
listanddms profile list. Until now the order was the creation date, which matters more once profiles are switched with a keybind. There is also a new IPC call to move a profile:dms ipc call config-profile move <profile> <position>.Reset to when applied is in the right-click menu of the active profile and is enabled once something in the profile's groups changed. It puts those settings back to how they were when the profile was applied, also after a restart. With sync on the profile file gets the old values again, with sync off it stays untouched. I mostly wanted this as an undo for sync, because with sync on a quick experiment overwrites the profile a few seconds later.
This is the first of three PRs for profiles, a profile picker on a keybind and a transition when switching profiles follow.
Notes
The drag grid is a new grid mode of DReorderList in dux-qml-common (duxlabs-dev/dux-qml-common/pull/62 merged so this one is ready to be merged).
The order is one list of profile ids in session.json, so it isn't part of any profile, export or import. Imported and new profiles are added at the end.
1 new term to translate: Reset to when applied.
Type of change
Related issues
Screenshots / video
recording_2026-11-22_17-51-16.mp4
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings