Skip to content

sysmon: add a group bars style and label every value in the bars layout - #4470

Draft
Conava wants to merge 2 commits into
duxlabs-dev:masterfrom
Conava:sysmon-bars-look
Draft

Conava wants to merge 2 commits into
duxlabs-dev:masterfrom
Conava:sysmon-bars-look

Conversation

@Conava

@Conava Conava commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up to #4460 with more feedback on the system monitor bars layout:

  • New Group style next to Tiles and Brackets: the device icon starts the first row and the other values of that device sit indented below it, each with its own icon.
  • Tiles and Brackets now show an icon for every value after the main one (thermometer, speed, swap, arrows for disk and network), indented so the main bar starts where those icons start. Before, an icon only showed up where two values shared a unit, which left single icons and a % in front of the main value.
    VRAM also has its own icon now instead of the Memory one.
  • A tall card with too many values for upright bars auto switches to horizontal to avoid overflow.

Also hardened the layout fitting after the crash fixed in 30d4357: it only touches the layouts it measures, skips cards that aren't shown and does nothing once a card is torn down.

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

Examples screenshot_2026-11-28_22-22-27 screenshot_2026-11-28_22-22-15 screenshot_2026-11-28_22-21-44 screenshot_2026-11-28_22-21-34 screenshot_2026-11-28_22-21-26

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 system monitor bar widget dux-docs#221

The bars layout gets a third style, Group, next to Tiles and Brackets:
the device icon starts its first row and the device's other values
sit indented below it, each with its own icon.

Tiles and Brackets now label every value after the device's main one
with its own icon (thermometer, speed, swap, arrows for disk and
network), indented so the main bar starts where those icons start.
This replaces the markers that only appeared where two values shared
a unit, which left single icons and a percent sign in front of the
main value. VRAM gets its own icon instead of the Memory one.

In auto orientation a tall card whose upright bars cannot fit even at
the smallest zoom lays them flat until it is wide enough, instead of
drawing past the card. The bars read their available height from the
card, which removes a binding loop through the content size.

Settle only polishes the layouts and positioners it measures, skips
paused content now that its rows are kept, and queued calls return
once their host is torn down; SysmonSource does the same for a queued
rebuild.
@github-actions github-actions Bot added feature fix ui Quickshell UI under quickshell/ labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

One regression to fix before merging. Everything else checked out.

  • When Clock is the main value in the short-text bar styles, it shows a bare number with no icon and no unit (quickshell/Modules/Sysmon/MonitorBars.qml:130)

Checked: the new Group style, line icons, sizing, vertical layout and spacing in MonitorBars; MonitorContent auto-flat orientation, the layFlat callLater, the idle/alive guards and the polishLayouts filter; the barStyle enum and how it is normalized; the SysmonSource teardown guard; reuse of the "Group" i18n term; deprecated shims; idle CPU and timers. Docs are linked (dux-docs#221). Model: claude-opus-5-5.

A short clock has no unit in its text, so it keeps its speed icon even
as a device's main value.
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier finding about a short main-value clock losing its unit is fixed in 61e06db.

Checked: the new showsLineIcon rule, and that lineIcons, sizing and the LineIcon visibility all use it with matching entry indexes and asleep handling; the Group style, line icons and vertical/horizontal layout in MonitorBars; MonitorContent auto-flat orientation, the layFlat callLater, the idle/alive guards and the polishLayouts filter; barStyle enum normalization; the SysmonSource teardown guard; i18n reuse; deprecated shims; idle CPU and timers. Docs are linked (dux-docs#221). Model: claude-opus-5-5.

@apollo79

Copy link
Copy Markdown
Member

I gotta say, I dislike the group style and am not sure if we need yet another option. Imo it doesn't look clean at all, having two icon sizes, icons not aligned to each other and the big one kinda disconnected from its value because the small icon sits right next to its own value while the big one is kinda shared and kinda labeling the first bar.

Also the small icon for only a one bar causes the bars to start at different positions and while the values are mostly not comparable (except for upload/download maybe) that adds to the parts that seem off to me here.

@Conava

Conava commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Cant really disagree with you there @apollo79.
I was really unsatisfied with all current options for bars here, noting looked good and was clear enough at the same time. Still had this one in my backlog and decided to put it in to offer some more options.

@Conava
Conava marked this pull request as draft November 28, 2026 22:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants