Skip to content

sysmon: fix priority on merged rows and add finer presets - #4361

Merged
bbedward merged 3 commits into
duxlabs-dev:masterfrom
Conava:process-priority-merged
Nov 21, 2026
Merged

bbedward merged 3 commits into
duxlabs-dev:masterfrom
Conava:process-priority-merged

Conversation

@Conava

@Conava Conava commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Setting the priority on a merged row skipped child processes that ending a process tree skips, like dms, qs and quickshell. For Dux Shell itself only the background process got the new priority while the UI kept its old one. Now every process of the row gets it.

Also the priority presets changed: Highest set nice -20, which ranks above the compositor and the shell, so a busy process set to Highest could make the whole desktop stutter. The high side now has High (-5), Very High (-10), Highest (-12, around what compositors usually get) and Maximum (-19), which shows a warning icon. Low and Lowest stay as they were.

This also drops the priority number from the details > resources menu of processes since it mostly just repeats the nice value and can be confusing.

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): update the process priority presets dux-docs#215

Changing the priority of a merged row skipped children by the names
that ending a process tree skips, which include dms, qs and quickshell.
The shell's UI runs as a dms child of the dms background process, so
setting the priority on that row only reached the background process.
Merged children all run the row's executable anyway, so the priority
change now reaches all of them.

Highest set nice -20, which outranks the compositor and the shell, so a
busy process picked as Highest could make the whole desktop stutter.
The high side now has High (-5), Very High (-10) and Highest (-12, what
compositors usually run at), plus Maximum (-19) marked with a warning
icon in the priority menu and the detail strip dropdown. Low and Lowest
stay as they were.
@github-actions github-actions Bot added core Go daemon and CLI under core/ fix ui Quickshell UI under quickshell/ labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

One issue: the warning icon on Maximum can vanish from the detail strip priority dropdown.

  • optionIconMap binding is overwritten by DDropdown's rebuildIconMap(); use optionIcons instead, quickshell/Modules/ProcessList/ProcessDetailStrip.qml:673

Checked: Go mergedChildren/helper process.nice call and QML priorityScript stay in sync after dropping skip, preset nearest-match mapping, context menu trailingIcon, DDropdown icon map handling. Model: claude-opus-5-5.

DDropdown rebuilds optionIconMap from optionIcons whenever its options
change, which replaced the bound map with an empty one. Pass the icons
as a parallel optionIcons list instead.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier finding is fixed: the detail strip dropdown now passes optionIcons, which goes through rebuildIconMap().

Checked: the Go mergedChildren and process.nice helper and the QML priorityScript still agree after dropping skip (treeOrder still uses it for ending a process tree), the argument positions in setPriority, the nearest-match mapping in priorityPreset for the new presets, the context menu trailingIcon, and how DDropdown handles optionIcons. Model: claude-opus-5-5.

For normal processes it is 20 plus the nice value shown in the row
below it, and a lower number meaning more CPU time read backwards next
to the new priority presets.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The new commit only drops the kernel Priority row from the detail strip CPU section. The Nice row and the priority preset chip still show the same information.

Checked: the Go mergedChildren and process.nice helper and the QML priorityScript still agree after dropping skip (treeOrder still uses it for ending a process tree), the argument positions in setPriority, the nearest-match mapping in priorityPreset for the new presets (nice -20 now maps to Maximum), the context menu trailingIcon, the optionIcons fix from earlier, and the removed CPU row. Model: claude-opus-5-5.

@bbedward
bbedward merged commit 150b238 into duxlabs-dev:master Nov 21, 2026
8 checks passed
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/ fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants