repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

feat(system): directional disk sparkline (read/write)

7a28715d70b1f63a8dead00a8f74bc8234303a91

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Disk spark splits like net: read grows up (accent), write down (info),
shared scale. Adds diskReadRing/diskWriteRing; combined diskRing still
drives the fill-bar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Changed files (2)

quickshell/nuguland/PopoutHost.qml

Modified
960 960 const cur = systemPanel.rs.diskReadRate + systemPanel.rs.diskWriteRate;
961 961 return m > 0 ? Math.min(1, cur / m) : 0;
963 - barColor: root.theme ? root.theme.ui.minor : "#9d9d9d"
964 - ring: systemPanel.rs ? systemPanel.rs.diskRing : []
963 + // directional spark: R read (accent) above the line,
964 + // W write (info) below; fill-bar stays combined.
965 + barColor: root.theme ? root.theme.ui.accent : "#d86dd8"
966 + splitSpark: true
967 + ring: systemPanel.rs ? systemPanel.rs.diskReadRing : []
968 + ringDown: systemPanel.rs ? systemPanel.rs.diskWriteRing : []
969 + barColorDown: root.theme ? root.theme.info : "#3ec5e3"
967 972 NuguText {

quickshell/nuguland/Resources.qml

Modified
45 45 property var netRxRing: [] // download, for the directional net spark
46 46 property var netTxRing: [] // upload, for the directional net spark
47 47 property var diskRing: []
48 + property var diskReadRing: [] // read, for the directional disk spark
49 + property var diskWriteRing: [] // write, for the directional disk spark
49 51 // --- issue inputs (slow / rare loops) ---
50 52 property var failedUnits: []
236 238 netRxRing = Sys.pushRing(netRxRing, networkRxRate, ringCap);
237 239 netTxRing = Sys.pushRing(netTxRing, networkTxRate, ringCap);
238 240 diskRing = Sys.pushRing(diskRing, diskReadRate + diskWriteRate, ringCap);
241 + diskReadRing = Sys.pushRing(diskReadRing, diskReadRate, ringCap);
242 + diskWriteRing = Sys.pushRing(diskWriteRing, diskWriteRate, ringCap);
239 243 networkHistorySamples = Sys.pushRing(networkHistorySamples, Math.max(networkRxLevel(), networkTxLevel()), ringCap);