Registered Member
|
Hello,
My trusty network monitor is now (since I upgraded to the latest Kubuntu, but I assume it's a KDE change) showing traffic in (multiples of) bits per second instead of bytes per second, as it used to. There is no option that I can see to revert this change. (Kvetching: I'd like to understand the thought process of the dev who woke up and just changed a unit into another without giving the user a choice. Perhaps in response to viewtopic.php?f=304&t=138801&p=371509&hilit=network+monitor+bits+bytes#p371509 ? It may come as a shock to said dev, but not everybody uses the same units, so such a change is guaranteed to annoy someone. Especially when going from the common unit, used for every file size in every GUI, to the less common one -- aside from connection speed I don't see much in bits. Let's not even get into Mega vs Mebi stuff. End Kvetching) Since I do not enjoy having to mentally divide by 8 each time I glance at the monitor, I'd like to *at least* revert that on my computer. Is there a way ? |
Registered Member
|
In the world of the FOSS everything is possible... One way to do it - My Network Monitor: Copy and rename /usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor.net/ to $HOME/.local/share/plasma/plasmoids/org.kde.plasma.mysystemmonitor.net/ Note ! It is mysystemmonitor ! Edit $HOME/.local/share/plasma/plasmoids/org.kde.plasma.mysystemmonitor.net/metadata.desktop Sample file:
Make same edits to the $HOME/.local/share/plasma/plasmoids/org.kde.plasma.mysystemmonitor.net/metadata.json or simply remove it. Edit $HOME/.local/share/plasma/plasmoids/org.kde.plasma.mysystemmonitor.net/contents/ui/net.qml Remove the formats: After edit - $HOME/.local/share/plasma/plasmoids/org.kde.plasma.mysystemmonitor.net/contents/ui/net.qml:
Save the file. Now there should be two Network Monitors available: Yours and the official. Same kind of - My Digital Clock: viewtopic.php?f=17&t=134970&p=361132#p361132 |
Registered Member
|
Thank you, kind sir; it works, and the operation was quite painless
Had I been more enterprising, I could have found the qml file (well, I kinda botched my 'find' yesterday, but in principle...) and reversed vlr's diff, having seen it on GitHub, but I doubt I'd have had the wherewithal and patience to find out where to place a local copy (or even guessed it was possible, for the plasma/plasmoids dirs didn't exist in my .local.) and I wouldn't have dared to modify the global version, for fear of breaking stuff. That might come in handy the next time a plasmoid misbehaves. While we're at it, let's note that vlr's code could also be adapted to B, KB, MB and B, KiB, MiB displays, simply by playing on the 1024 vs 1000 and 8 vs 1 constants. I'll contact the author to see if they're willing to make those an option. Shouldn't be too hard for someone who already knows where stuff is in QML. I'd do it myself if I could just find out how to add two checkboxes or option boxes to the plasmoid's options dialog, and get their values. I glanced at https://techbase.kde.org/Development/Tutorials/Plasma5 but didn't see anything about that. Anyway, thanks again ! |
Registered Member
|
Hum... whenever I try to remove the old network monitor (long click, remove), after a few seconds I'm treated to a black screen for a half second before plasma restarts, and the old monitor is back in the upper-left corner of the screen. Strange.
(edit: also happens with right-click / remove) edit: seems to happen whenever I remove any widget. |
Registered Member
|
Plasma should not restart because you remove a widget...I think maybe it's crashing and restarting so the widget is not actually removed? Having said that, I was one of those who mentioned the monitor should be "bps" based as I prefer to see speed relative to my link and/or internet speed. But that's just me (and a few others I'm guessing due to the change). Also something I've mentioned but haven't seen any response, is the text on the widgets should be black bordered so it's readable with bright backgrounds. For instance, you max out your upload on Network Monitor and the green graphics fill most of the widget, but you can't read the speed because the white text is lost in the green graphics. I think that's more important than bps/Bps. But that's just me. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]