Skip to content

sysmon: replace the monitor bar widgets with one system monitor widget - #4377

Merged
purian23 merged 17 commits into
duxlabs-dev:masterfrom
Conava:sysmon-bar-widget
Nov 27, 2026
Merged

purian23 merged 17 commits into
duxlabs-dev:masterfrom
Conava:sysmon-bar-widget

Conversation

@Conava

@Conava Conava commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Next PR for the system monitor widgets redesign. It builds on #4364 and should go in only after that is merged (its commits are included here). This one does the bar widget and their popouts.

The CPU, memory, disk, CPU and GPU temperature and network speed bar widgets become one System Monitor widget. It holds a list of entries, one per device or for all drives or interfaces together, with the same values and styles (Icon, Meter, Ring, Graph) as the desktop widget and the dash card. For each entry the shown values can be selected, and the entries can be split by a gap, a line, a dot or as separate pills.

Each widget can be set to one of four popouts, which opens for the entry that was clicked:

(Screenshot examples below):

  • Compact: the entry's values and chart
  • Device: a tab per listed device with its details and top processes
  • Overview: every listed device as a row, the clicked one expanded
  • Processes: the process list, now with tiles on top that pick what it is sorted by

The device views are the same ones as in the system monitor window, just in a compact layout.

Behavior changes

  • Existing monitor widgets on bars, docks and the island are migrated to System Monitor widgets that show the same values and keep the process list popout with its old sort.
  • The old widget types are removed, including the deprecated shims in qs.Modules.DankBar.Widgets, since they don't exist as widgets anymore. My clanker couldn't find a plugin that uses them. The old widget ids still work with dms ipc call widget ... and open the first System Monitor widget.
  • Memory is shown in GiB everywhere now, so the desktop widget and the dash card switch from GB too.
  • A GPU entry reads that GPU, which can keep it from sleeping, and Setting warns about this. A GPU that is already asleep shows Idle and is not woken up.

The device tabs and tiles use the shared button group shape introduced with duxlabs-dev/dux-qml-common#59.

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

Images including the latest fixes on this PR:

screenshot_2026-11-27_15-27-02 screenshot_2026-11-27_15-27-26
More Screenshots Switching to GPU row screenshot_2026-11-21_19-40-50

Settings for a CPU only widget
screenshot_2026-11-21_19-41-21

Adding a new System Monitor Widget
screenshot_2026-11-21_19-41-42

Combined GPU and Memory widget with some different styles/looks
screenshot_2026-11-21_19-43-31

New Popout styles:
Comapact:
screenshot_2026-11-21_19-44-42

Device
screenshot_2026-11-21_19-45-00

Overview
screenshot_2026-11-21_19-45-13

(Processes is already the one used in the screenshots on top)

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 CPU, Memory, Disk, Network and System Monitor dash cards become one
System Monitor card that renders the desktop widget's monitor content
with its own config per placement, so the dash gets the same layouts,
styles, devices and values as the desktop widget instead of five fixed
cards. The card is edited from the dash options sheet and from a System
Monitor list on Settings -> Dashboard, both through the layout and
metric editors shared with the desktop widget page. Duplicating a card
from that list is refused with a toast when the dash has no room.

A v47 migration turns every old card into an equivalent System Monitor
card with its size, place and tone. The old System Monitor card becomes
one CPU entry (usage and temperature) plus Memory in the Bars style. A
graph always follows its main value. Space history is kept per drive,
not per mount, so a migrated Disk card, which reads the root mount like
the old card, shows no graph where the old card drew read/write rates.

Changes in the shared monitor components, which the desktop widget gets
too:
- Bars stack in one column when they fit a box: single-value groups
  drop to one line and line gaps tighten when the two-line stack would
  not fit, unframed groups keep the normal gap and sit centered instead
  of spreading out, and secondary values use the content color.
- The layout measures rows, bar groups and graph legends again as their
  delegates arrive. Inside an asynchronous loader (the dash builds cards
  asynchronously) it measured them before they existed and kept a
  layout that overflowed its card.
- The Classic tile style is removed: it only drew a small gauge around
  the header icon, otherwise the same as Icon, which is now the default.
  Saved Classic configs show the Icon style. A Meter tile draws its trend
  when graph is on, and a small Ring tile shows only the value inside.
- A disk metric's mount is honored for its reads and details.
- The layout planner no longer returns no plan when every candidate
  scale is negative.
Only the Classic header gauge read it, and that gauge is gone.
The CPU, Memory, Disk, Network and System Monitor dash cards become one
System Monitor card that renders the desktop widget's monitor content
with its own config per placement, so the dash gets the same layouts,
styles, devices and values as the desktop widget instead of five fixed
cards. The card is edited from the dash options sheet and from a System
Monitor list on Settings -> Dashboard, both through the layout and
metric editors shared with the desktop widget page. Duplicating a card
from that list is refused with a toast when the dash has no room.

A v47 migration turns every old card into an equivalent System Monitor
card with its size, place and tone. The old System Monitor card becomes
one CPU entry (usage and temperature) plus Memory in the Bars style. A
graph always follows its main value. Space history is kept per drive,
not per mount, so a migrated Disk card, which reads the root mount like
the old card, shows no graph where the old card drew read/write rates.

Changes in the shared monitor components, which the desktop widget gets
too:
- Bars stack in one column when they fit a box: single-value groups
  drop to one line and line gaps tighten when the two-line stack would
  not fit, unframed groups keep the normal gap and sit centered instead
  of spreading out, and secondary values use the content color.
- The layout measures rows, bar groups and graph legends again as their
  delegates arrive. Inside an asynchronous loader (the dash builds cards
  asynchronously) it measured them before they existed and kept a
  layout that overflowed its card.
- The Classic tile style is removed: it only drew a small gauge around
  the header icon, otherwise the same as Icon, which is now the default.
  Saved Classic configs show the Icon style. A Meter tile draws its trend
  when graph is on, and a small Ring tile shows only the value inside.
- A disk metric's mount is honored for its reads and details.
- The layout planner no longer returns no plan when every candidate
  scale is negative.
Only the Classic header gauge read it, and that gauge is gone.
The CPU, memory, disk, CPU and GPU temperature and network speed bar
widgets become one System Monitor widget. Each widget holds a list of
entries, one per device or device group, with per-entry options
(percentage, disk mode, compact rates, hide when idle) and a separator
between them, using the same metric catalog and styles (icon, meter,
ring, graph) as the desktop widget and dash card.

Each widget picks a popout: Compact (one device's key values and
chart), Device (a tab per listed device with its pane and top
processes), Overview (every device as a row, the selected one expanded)
or the existing Processes list, which gets summary tiles that pick the
sort resource. The panes are the system monitor window's device panes
in compact layouts, so both share one renderer.

Settings migration v48 turns every old monitor widget on bars, docks
and island layouts into a System Monitor entry that shows what it
showed before (swap, GB vs percent, mount, disk mode, mount label, GPU
by PCI id or index, compact and hide-when-idle rates) and keeps the
Processes popout with the old sort. Old widget ids passed to the widget
IPC calls resolve to the first System Monitor widget.

GPUs are only read when an entry picks one or GPU monitoring is on; a
suspended or unmonitored GPU shows as idle without being read. Popout
data is held only while the popout is open, and the bar item only
samples while it is visible.

Also:
- Ref defers module and active changes, so releasing data no longer
  changes service state inside the bindings that read it.
- The first sample after a module is added comes after a second, so
  per-process rates show up sooner.
- ProcessesView no longer throws when the process list is still empty.
- Memory sizes use one unit (GiB) in the bar, the monitor view and its
  process rows.
@github-actions github-actions Bot added breaking feature ui Quickshell UI under quickshell/ labels Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

Mostly solid, but there are three bugs to fix before merge and two rule issues.

  • Widget hidden by "hide when idle" stays visible, so hover popouts and clicks still open it in the gap: quickshell/Modules/DBar/Widgets/SystemMonitor.qml:362
  • Connections on I18n.translations change in a per-item bar widget: quickshell/Modules/DBar/Widgets/SystemMonitor.qml:345
  • Device popout stops polling gpu for a suspended GPU, so its tab never leaves Idle: quickshell/Modules/ProcessList/SysmonDeviceContent.qml:47
  • Bar widget settings rows are recreated on every DgopService sample through entryInfo: quickshell/Modules/Settings/WidgetsTab.qml:478
  • New "Failed to duplicate card" term duplicates the existing "Failed to duplicate %1": quickshell/Modules/Settings/DDashTab.qml:267

Checked: settings migrations v47/v48, old widget ids over IPC, Ref and FullProcessListRef balance, idle timers, references to the removed shims, DCommon API in the submodule commit, deprecated types, raw views, tokens, I18n, search index. Model: claude-opus-5-5.

@Conava Conava changed the title Sysmon bar widget sysmon: replace the monitor bar widgets with one system monitor widget Nov 21, 2026
- A widget hidden by Hide when idle is no longer hit-testable once
  its fade ends, and keeps sampling so it can come back.
- The device popout keeps polling a sleeping GPU's state, so its tab
  leaves Idle when the GPU wakes.
- Settings rows resolve device names in the delegate, and names of
  entries without a device id no longer read live device lists, so
  the bar widget list isn't rebuilt on every sample.
- Old widget ids over IPC open the widget and row showing that
  device; IPC and accessibility presses open the first visible row.
- The popout trigger includes the bar, so two bars on one screen
  switch the popout instead of closing it.
- Reused terms get translator contexts; the duplicate toast reuses
  "Failed to duplicate %1".
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The five findings from the last run are fixed in 5485cee.

Checked: the fix commit (the idle-hidden widget now goes visible: false and keeps sampling, the device popout polls the GPU state while the GPU sleeps, settings rows resolve names in the delegate, the device counts became int properties, I18n Connections replaced by idleText, the reused duplicate toast term), old widget ids over IPC picking the matching device row, the trigger key now including the bar id and matching the hover controller, translator contexts. The rest of the PR was already covered by the previous run. Model: claude-opus-5-5.

The click area's hover handler kept the pointer from the pill's state
layer, so the widget never showed the hover tint other bar widgets
have. The handler now sits on the pill itself, with the click margins
as its margin so the tooltip still picks the group under the pointer
at the screen edge.

The device popout's tab labels took their width from a text
measurement that can come out a fraction of a pixel short, so a fully
visible label could still count as truncated and show a tooltip.

Right after switching to the Disks, Network or GPU tab every process
rate is still unknown, since it needs two samples, and the process
section said "No matching processes". It shows a spinner for up to two
sample intervals until the first rates arrive.
Opened from a network entry, the device and overview popouts listed
every interface, which gets long and confusing. They now work like
disks: the entry's own interface when it is set to one, else the
combined Network tab.
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The two new commits look correct.

Checked: be0b911 (the HoverHandler on the pill: its margin covers the click area, point.position is now already in pill coordinates, and the tooltip still follows isMouseHovered; the caption width from implicitWidth; the pending spinner, whose one-shot timer only runs after a tab switch or open, and DSpinner stops animating when hidden) and 2736e3e (popoutDevices lists only the entry's own interface or the Network aggregate, and every caller and popoutSelection fallback was updated; the overview and device modules still poll net-rate through paneModules and modulesFor). The rest of the PR was covered by the earlier runs. Model: claude-opus-5-5.

@Conava Conava mentioned this pull request Nov 22, 2026
@bbedward

Copy link
Copy Markdown
Member

Please rebase

# Conflicts:
#	quickshell/Common/settings/SettingsStore.js
# Conflicts:
#	dux-qml-common
#	quickshell/Common/SettingsTabs.qml
#	quickshell/Common/settings/SettingsStore.js
#	quickshell/Modules/DDash/Overview/DashSysmonOptions.qml
#	quickshell/Modules/Settings/DDashTab.qml
#	quickshell/Modules/Settings/DesktopWidgetInstanceCard.qml
#	quickshell/Modules/Settings/Widgets/SettingsMonitorConfig.qml
#	quickshell/tests/settings-desktop-sysmon.test.mjs
#	quickshell/translations/settings_search_index.json
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The merge with upstream master and the new comment commit look correct.

Checked: 3e7f7f9 and 8d5abfd (the upstream v47 control center migration is kept and the dash card and bar widget migrations moved to v48 and v49, settingsConfigVersion is 49, and the tests and comments use the new numbers), 505720f, that no references to removed monitor widgets or dash cards remain after the merge, the PopoutService, BarWidgetCatalog, DashRegistry and SettingsTabs merge results, and that the PR uses none of the slider API removed by master's newest commit 46ee1f7. The rest of the PR was covered by the earlier runs. Model: claude-opus-5-5.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The new merge with upstream master looks correct.

Checked: 16da0ca conflict resolutions (settingsConfigVersion stays 49 with the dash card migration at v48 and the bar widget one at v49, the dash widget settings tab and DashSysmonCardTab on master's index 91, translator contexts kept, the upstream Clock catalog entry in CpuPane, the search index without the removed Show swap option), the submodule now on master's 440a066 which has DButtonGroupSegment with first, last, outerRadius and tooltipText, DMaterialShape and Fonts.widestDigit/textWidth, upstream's hover controller toggle-close change against the per-row sysmon trigger keys, the new bar scroll area and per-widget scroll defaults, and that no master code added since the last merge refers to the removed monitor widgets. The rest of the PR was covered by the earlier runs. Model: claude-opus-5-5.

@purian23 purian23 removed the breaking label Nov 27, 2026

@purian23 purian23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Stumb2 (AKA) The Marlon!

Few items:

  • The pill width jumps as values change (9%→10%, 100°) because minimumWidth was dropped. Could we reserve a fixed width per value type, like Meter does?
  • Migrated GPU entries without a PCI id recompute on every sample, and twin GPUs both read the first card. Saving the resolved PCI id once fixes both.

QOL

  • On vertical bars the font size follows the live text, so it can change between samples.
  • The System Monitor button opens CPU for hidden interfaces.
  • Spinners never stop for an unplugged drive or a VPN that's down.
  • The CPU thread grid collapses on 64+ thread CPUs.
    Nice work!

# Conflicts:
#	quickshell/Modules/Settings/DockWidgetsTab.qml
Every value in the pill reserves the widest text its kind can format
to, so the pill keeps its width as numbers change, and vertical bars
size their numbers from those reserves instead of the live text. The
asleep word gets its own fitted size so long translations don't shrink
the other numbers.

Migrated GPU widgets keep their list index next to the PCI id and save
the resolved card once the GPU list is known, so twin cards stay apart
and nothing is resolved again on every sample. A PCI id no card has is
saved as is and shows as missing.

The system monitor window turns on virtual devices when it is opened
on a hidden interface, the drive and network panes show Disconnected
for a device that is gone instead of a spinner, and the per-thread
grid in the popouts adds columns and tightens its gaps on CPUs with
many threads instead of collapsing.
Cells keep room for their number, so on 64 or more threads the card gets
taller rather than showing sparklines only. Opening the window on a
hidden interface also turns on Show virtual devices when the window is
created with that interface.
Cards, tiles and rows in the System Monitor window and the bar popouts
used fixed container shades that ignored the foreground layer opacity,
next to Settings groups that follow it, so three shades showed at
once. Cards now use the Settings row color, and anything inside a card
(thread cells, drive details, SMART rows) one nested shade of it.
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The upstream merge and the three new commits look correct.

Checked: 2a023be (the DockWidgetsTab conflict keeps the per-row entryInfo title and subtitle together with master's spacer fill and slider changes, and no master code refers to the removed widgets), 8942bc0 (migrated GPU widgets keep selectedGpuIndex and pciId and resolve once through legacyGpuKey when gpuTotal or the bar and dock configs change, so twin cards stay apart and a second run is a no-op; pciId is the same id the old widget saved; the reserve widths for each value kind and the vertical numberSize and idleSize; Disconnected reuses the existing term; the window turns on virtual devices for a hidden interface), 6008a1c (the thread grid card grows past the chart height, and the hidden reserve NumericText is skipped by the Grid positioner) and e174f1a (SettingsMetrics.rowColor and Theme.chipSurfaceNested exist and qs.Modules.Settings.Widgets is already imported). The rest of the PR was covered by the earlier runs. Model: claude-opus-5-5.

@Conava

Conava commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@purian23 all of the requested changes are in, and master is merged in once more.

Implementation details in case you want to know:

  • The vertical numbers are now sized for the widest value each one can show, so they stay the same size but are a bit smaller than before when a value can get long (memory as a size, network rates).
  • A GPU widget migrated with a PCI id that no card has anymore is shown as missing instead of an empty pill.
  • On CPUs with many threads the per-thread grid in the popout now gets taller instead of shrinking the cells, so every thread keeps its number.

Also put a design fix in here that was pointed out to me earlier:The cards in the System Monitor window and the popouts now follow the foreground opacity setting. Before there were three different card colors mixed in the same popout.

@purian23
purian23 merged commit 3f92e48 into duxlabs-dev:master Nov 27, 2026
6 checks passed
@Conava
Conava deleted the sysmon-bar-widget branch November 27, 2026 17:23
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.

3 participants