System Load Viewer Mod

Plasma 5 Monitoring cpu memory monitoring ram swap

Source (link to git-repo or to original if based on someone elses unmodified work): https://gitlab.com/hkanjal/kdeplasma-addons

1
8.5
Available as/for: -
Description:

System Load Viewer: A Tiny CPU/RAM/Swap monitor (from plasma <= 5.20)
Last changelog:

v0.8.2 1 month ago

Revert "Display cached memory"

9

garrywilliams

1 month ago

https://gitlab.com/hkanjal/kdeplasma-addons/-/merge_requests/1

Report

9

garrywilliams

1 month ago

Please see suggested changes: https://github.com/gtwilliams/clone-of-kdeplasma-addons/pull/1

This applet even without the changes is really the best system monitor widget.

Be sure to configure General->Monitor type->Compact bar and Colors->Set
Colors Manually. The defaults are not nearly so nice.

Report

C

kuser

1 month ago

Hi, I created a repository to hold the widget. Would you please send a MR there. By the way, anyone with ideas for improvements is welcome to send a merge request. Link at the top. Thanks.

Report

9

garrywilliams

1 month ago

Sorry for the noise.

I would like to send a proper patch, but there seems to be no way to do so.

I will create a repository to clone kdeplasma-addons and point you to a pull request.

Report

9

garrywilliams

1 month ago

Subject: [PATCH] Make tooltip interactive. (3 of 3)

@@ -197,6 +200,10 @@ Item {
memoryUsageProportions[1] = fitMemoryUsage(data.value)
memoryUsageProportionsChanged()
}
+ else if (sourceName == memCached) {
+ memoryUsageProportions[2] = fitMemoryUsage(data.value)
+ memoryUsageProportionsChanged()
+ }
else if (sourceName == swapUsed) {
swapUsageProportion = fitSwapUsage(data.value)
swapUsageProportionChanged()
@@ -365,6 +372,7 @@ Item {
id: stdToolTip
anchors.fill: parent
active: true
+ interactive: true
mainText: i18n("System load")
subText: toolTipSubText()
visible: !plasmoid.configuration.cpuAllActivated || dataSource.maxCpuIndex < 5
@@ -381,6 +389,7 @@ Item {
PlasmaCore.ToolTipArea {
anchors.fill: parent
active: true
+ interactive: true
visible: !stdToolTip.visible

mainItem: Item {
--
2.31.1

Report

C

kuser

1 month ago

Hi, could you please submit a proper patch (lines seem here mixed) and upload it somewhere like github/gitlab etc.?
A description of what the patch would do and what would be the end result (screenshot may be?) would be very nice! Thank you.
I failed to get a patch from what you send, patch/git patch can't process it... I thought about creating agit repo and upload somewhere, where people can contribute/ask questions etc. opendesktop.net would be a possibility. What do you think?

Report

9

garrywilliams

1 month ago

Subject: [PATCH] Make tooltip interactive. (2 of 3)

diff --git a/applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml b/applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml
index 00880caca..3b27411b6 100644
--- a/applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml
+++ b/applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml
@@ -50,9 +50,11 @@ Item {
theme.linkColor]

readonly property var memoryColors: setColorsManually ? [plasmoid.configuration.memApplicationColor,
- plasmoid.configuration.memBuffersColor]
+ plasmoid.configuration.memBuffersColor,
+ plasmoid.configuration.memCachedColor]
: [theme.buttonFocusColor,
- theme.visitedLinkColor]
+ theme.visitedLinkColor,
+ theme.highlightColor]
readonly property var swapColors: setColorsManually ? [plasmoid.configuration.swapUsedColor]
: [theme.highlightColor]
readonly property var cacheColors: setColorsManually ? [plasmoid.configuration.cacheDirtyColor,
@@ -137,6 +139,7 @@ Item {
readonly property string memFree: memPhysical + "free"
readonly property string memApplication: memPhysical + "application"
readonly property string memBuffers: memPhysical + "buf"
+ readonly property string memCached: memPhysical + "cached"
readonly property string memUsed: memPhysical + "used"
readonly property string swap: "mem/swap/"
readonly property string swapUsed: swap + "used"
@@ -148,7 +151,7 @@ Item {

property var totalCpuLoadProportions: [.0, .0, .0, .0]
property int maxCpuIndex: 0
- property var memoryUsageProportions: [.0, .0]
+ property var memoryUsageProportions: [.0, .0, .0]
property double swapUsageProportion: .0
property var cacheUsageProportions: [.0, .0]

@@ -159,7 +162,7 @@ Item {
function sources() {
var array = [niceLoad, userLoad, sysLoad,
ioWait, memFree, memApplication, memBuffers,
- memUsed, swapUsed, swapFree,
+ memCached, memUsed, swapUsed, swapFree,
averageClock, totalLoad, cores, cacheDirty,
cacheWriteback]

Report

9

garrywilliams

1 month ago

9 I agree this is the best system monitor widget.

Even better, this patch: (1 of 3)

Subject: [PATCH] Make tooltip interactive.

Hover on the system load viewer and get details about all the cores and
memory use. But it goes away too fast to absorb the data. This change
makes the tooltip interactive.

Also, this restores the cache portion of the memory usage. This is
especially handy when the monitor is configured for "Compact bar" with
"Memory monitor" under General and Set Colors Manually under Colors.

That restores the original look and feel from before Plasma.
---
.../package/contents/config/main.xml | 3 +++
.../package/contents/ui/ColorSettings.qml | 7 +++++++
.../package/contents/ui/SystemLoadViewer.qml | 17 +++++++++++++----
3 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/applets/systemloadviewer/package/contents/config/main.xml b/applets/systemloadviewer/package/contents/config/main.xml
index 3cc176156..a0f6d018d 100644
--- a/applets/systemloadviewer/package/contents/config/main.xml
+++ b/applets/systemloadviewer/package/contents/config/main.xml
@@ -9,6 +9,9 @@

blue

+
+ green
+

yellow

diff --git a/applets/systemloadviewer/package/contents/ui/ColorSettings.qml b/applets/systemloadviewer/package/contents/ui/ColorSettings.qml
index f81e074d7..cbf6c0358 100644
--- a/applets/systemloadviewer/package/contents/ui/ColorSettings.qml
+++ b/applets/systemloadviewer/package/contents/ui/ColorSettings.qml
@@ -30,6 +30,7 @@ Kirigami.FormLayout {

property alias cfg_memApplicationColor: memApplicationColorPicker.color
property alias cfg_memBuffersColor: memBuffersColorPicker.color
+ property alias cfg_memCachedColor: memCachedColorPicker.color
property alias cfg_cpuUserColor: cpuUserColorPicker.color
property alias cfg_cpuIOWaitColor: cpuIOWaitColorPicker.color
property alias cfg_cpuSysColor: cpuSysColorPicker.color
@@ -95,6 +96,12 @@ Kirigami.FormLayout {
enabled: setColorsManually.checked
}

+ KQuickControls.ColorButton {
+ id: memCachedColorPicker
+ Kirigami.FormData.label: i18nc("@label:chooser", "Cached:")
+ enabled: setColorsManually.checked
+ }
+

Item {
Kirigami.FormData.isSection: true

Report

9

danilo-bc

1 month ago

9 I love that this is back for Fedora34 (and new KDE), it is by far the best system monitor widget. What I'd like to be linked to the new system monitor when I click the widget, instead of going back to the old one (or having it be at least a toggle)

Report

C

kuser

1 month ago

Thanks for the feedback. You can change it to open the new system monitor like this:
1- Locate the plasmoid. Either /home/yourUserName/.local/share/plasma/plasmoids/org.kde.plasma.systemloadviewer or if installed system wide /usr/share/plasma/plasmoids/org.kde.plasma.systemloadviewer

2- Locate the following file inside folder from step 1: contents/ui/SystemLoadViewer.qml
The full path would be then:
/usr/share/share/plasma/plasmoids/org.kde.plasma.systemloadviewer/contents/ui/SystemLoadViewer.qml (if system wide installed) or:
/home/yourUserName/.local/share/plasma/plasmoids/org.kde.plasma.systemloadviewer/contents/ui/SystemLoadViewer.qml

3- Find and replace the following in two lines:
Find: kRun.openService("org.kde.ksysguard")
Replace with: kRun.openService("org.kde.plasma-systemmonitor.desktop")
As I said, there should be two lines, just replace the name of application in kRun.openService("newAppNameHere")

Note: Keep in mind to do this again IN CASE the widget is updated.
Thanks again for your feedback. I hope I could help.

Report

9

danilo-bc

1 month ago

p.s.: there's no ".desktop" in the name to make it work, so just kRun.openService("org.kde.plasma-systemmonitor")

Report

C

kuser

1 month ago

You are right, my bad, I copy/pasted the file name and forgot to adjust. Thanks for the hint.

Report

9

danilo-bc

1 month ago

That's pretty helpful. Thanks! If there's a way to add this variation to the GUI configuration in future updates, it would be perfect.

Report

C

kuser

1 month ago

Am afraid I cant do that. With updates I meant updates from original authors (source link at the top) which I doubt will happen. So just change it and enjoy :-)
If anyone else has the skills to implement it, I would be happy to adapt the change so that we all get it.

Report

10

rockingcat

1 month ago

10 Great!

Report

9

Self-Perfection

1 month ago

9 9 excellent

Report

9

RodJLinux

2 months ago

9 9 excellent
It's just the right size for use in the panel where space is at a premium but you can see at a glance what the system is doing. I also like the fact that you can click on it and it will show the ksysguard window. Thanks Kuser!

Report

10

mysak0cz

2 months ago

10 Thank you for bringing it back!

Report

10

e1nste1n

2 months ago

10 Thanks, is there a downside to continue using it?

Report

C

kuser

2 months ago

AFAIK, no.

Report

10

joecool

2 months ago

10 Nice! I really missed it on my Panel.

Report

10

mkyral

2 months ago

10 Thank you. I like this this compact style that shows many information on small area. New widget is nice and configurable, but I was not able to configure it to have the same look and info.

Report

10

println

2 months ago

10 Thank you so very much. I still can't quite understand the reasoning behind switching to new system monitor system which is beta at best. This widget will bide me over while it's being cooked.

Report

10

hellblade

2 months ago

10 10 the best

Report

10

alekksander

2 months ago

10 thank You!

Report

v0.8.2 1 month ago

Revert "Display cached memory"

v0.8.1 1 month ago

Contributed by garrywilliams (thanks by the way):
Make tooltip interactive

The tooltip can display so much data that it is impossible to take it
all in before it goes away when hovering over the applet. This change
makes the tooltip interactive so that the user can actually read the
data before it vanishes.

This change also restores the display of cached memory in the memory bar
chart. These two changes restore the behavior of this applet before
introducing Plasma required this new one.

Be sure to configure General->Monitor type->Compact bar and Colors->Set
Colors Manually and probably General->Show->CPUs separately. The
defaults are much less appealing.

12345678910
1410
product-maker garrywilliams Apr 10 2021 9 excellent
I agree this is the best system monitor widget. Even better, this patch: (1 of 3) Subject: [PATCH] Make tooltip interactive. Hover on the system load viewer and get details about all the cores and memory use. But it goes away too fast to absorb the data. This change makes the tooltip interactive. Also, this restores the cache portion of the memory usage. This is especially handy when the monitor is configured for "Compact bar" with "Memory monitor" under General and Set Colors Manually under Colors. That restores the original look and feel from before Plasma. --- .../package/contents/config/main.xml | 3 +++ .../package/contents/ui/ColorSettings.qml | 7 +++++++ .../package/contents/ui/SystemLoadViewer.qml | 17 +++++++++++++---- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/applets/systemloadviewer/package/contents/config/main.xml b/applets/systemloadviewer/package/contents/config/main.xml index 3cc176156..a0f6d018d 100644 --- a/applets/systemloadviewer/package/contents/config/main.xml +++ b/applets/systemloadviewer/package/contents/config/main.xml @@ -9,6 +9,9 @@ blue + + green + yellow diff --git a/applets/systemloadviewer/package/contents/ui/ColorSettings.qml b/applets/systemloadviewer/package/contents/ui/ColorSettings.qml index f81e074d7..cbf6c0358 100644 --- a/applets/systemloadviewer/package/contents/ui/ColorSettings.qml +++ b/applets/systemloadviewer/package/contents/ui/ColorSettings.qml @@ -30,6 +30,7 @@ Kirigami.FormLayout { property alias cfg_memApplicationColor: memApplicationColorPicker.color property alias cfg_memBuffersColor: memBuffersColorPicker.color + property alias cfg_memCachedColor: memCachedColorPicker.color property alias cfg_cpuUserColor: cpuUserColorPicker.color property alias cfg_cpuIOWaitColor: cpuIOWaitColorPicker.color property alias cfg_cpuSysColor: cpuSysColorPicker.color @@ -95,6 +96,12 @@ Kirigami.FormLayout { enabled: setColorsManually.checked } + KQuickControls.ColorButton { + id: memCachedColorPicker + Kirigami.FormData.label: i18nc("@label:chooser", "Cached:") + enabled: setColorsManually.checked + } + Item { Kirigami.FormData.isSection: true
product-maker danilo-bc Apr 06 2021 9 excellent
I love that this is back for Fedora34 (and new KDE), it is by far the best system monitor widget. What I'd like to be linked to the new system monitor when I click the widget, instead of going back to the old one (or having it be at least a toggle)
product-maker rockingcat Apr 06 2021 10 the best
Great!
product-maker Self-Perfection Mar 27 2021 9 excellent
9 excellent
product-maker RodJLinux Mar 10 2021 9 excellent
9 excellent It's just the right size for use in the panel where space is at a premium but you can see at a glance what the system is doing. I also like the fact that you can click on it and it will show the ksysguard window. Thanks Kuser!
product-maker mysak0cz Mar 04 2021 10 the best
Thank you for bringing it back!
product-maker e1nste1n Mar 03 2021 10 the best
Thanks, is there a downside to continue using it?
product-maker joecool Mar 02 2021 10 the best
Nice! I really missed it on my Panel.
product-maker mkyral Mar 02 2021 10 the best
Thank you. I like this this compact style that shows many information on small area. New widget is nice and configurable, but I was not able to configure it to have the same look and info.
product-maker println Feb 28 2021 10 the best
Thank you so very much. I still can't quite understand the reasoning behind switching to new system monitor system which is beta at best. This widget will bide me over while it's being cooked.
product-maker hellblade Feb 23 2021 10 the best
10 the best
product-maker alekksander Feb 21 2021 10 the best
thank You!
product-maker wincak Feb 16 2021 8 great
Thank you! The new Plasma widgets are interesting and more configurable, but don't seem to be configurable to be as simple and well arranged as this. Just one issue: I can't select "Show: CPUs separately". Does this option only apply to systems with more actual CPUs (?!). I would just like to see physical cores separately. Ideas for improvement: 1) Optional labels (for each monitor) 2) Option to choose what application to launch on click 3) Option to make bars narrower ("Compact bar" option does not have outlines - hard to see the whole bar range) Still almost as good as xfce widgets.
product-maker trump Feb 10 2021 10 the best
Thank you for bringing this widget back to plasma!!!
product-maker bam80 Feb 03 2021 10 the best
10 the best
Be the first to comment
bam80
Feb 03 2021
File (click to download) Version Description Devices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
GPLv2 or later
version
0.8.2
updated Apr 15 2021
added Jan 26 2021
downloads 24h
79
mediaviews 24h 0
pageviews 24h 36