Ancestors

Toot

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-01 at 09:37

Is there something like nethogs, but with a GUI? (preferably GTK/GNOME)

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Descendants

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-02 at 00:50

Thanks to @jankatins, I'm now aware that nethogs has a libnethogs library, and it does pretty much everything I need from it. It's reasonably comfortable to use, too. So much so that I made a Nix derivation for it, and have a tiny tool that just prints the updates as they come.

So the data collection part is taken care of! Now to figure out what kind of UI I want.

I definitely do not want a Column View. That would be pretty much the same as nethogs, but with more pixels and without a terminal. I'm not looking to translate the TUI app to GNOME.

No, I'll take a different approach. What do I want to see? I want to see which applications are hogging my network. I'm usually interested in the top few. I'm not interested in an overview, I don't want to see all of them, just the top ones.

So I first considered a Grid View, where each item is just the application name, and the download speed. Clicking on an item would show more details about the process (owner, pid, totals, that kinda stuff). However, this would still display too much information, and... I just didn't like how it looked.

So I browsed the GTK4 and Adwaita widgets, and... I think I found something interesting: Adwaita's Carousel!

I know, I know, sacrilege! A carousel! ARE YOU MAD?!

Why, yes, I am, but hear me out! A carousel (vertical, with bars for navigation) shows one item a time, where I can immediately list all the info I need. It would show the worst offender by default, but I'd add a toggle button somewhere to pin it to whatever I'm currently viewing. If I want to look for the second or third offender, I'd just... scroll.

I think I'm liking this idea.

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-02 at 09:00

Ok, this is going pretty well so far, and I think I like where it is going.

=> View attached media

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-02 at 13:23

Neat. The statusbar is now updating with totals collected via libnethogs.

I "just" need to figure out how to handle the cards themselves. I have a few ideas, will see which one sticks.

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Written by Jan Katins on 2024-12-01 at 17:04

@algernon the readme at the bottom lists two front ends, one gtk, one qt.

=> More informations about this toot | More toots from jankatins@fosstodon.org

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-01 at 18:41

@jankatins :flan_facepalm: well, that's embarassing. Thanks!

Looks like gnethogs is kinda dead, and nethogs-qt does more than I want. But TIL, libnethogs. I can wrap that in a tiny shell!

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Written by Jan Katins on 2024-12-01 at 19:25

@algernon looking forward to that project 😁

(Also thanks for the original post, didn't know that per process network traffic was so easily available :⁠-⁠))

=> More informations about this toot | More toots from jankatins@fosstodon.org

Written by Jaakko Niemi on 2024-12-02 at 06:02

@algernon @jankatins Kindle app on Android used to have carousel library interface, which was very fast, easy and awesome to use. It's been going downhill ever since they took it away.

=> More informations about this toot | More toots from liiwi@mastodon.social

Written by cimm on 2024-12-02 at 09:16

@algernon I like where this is going. A future version could have a semi transparent graph as background on each card with with the last 5 minutes or something.

=> More informations about this toot | More toots from cimm@fedi.suffix.be

Written by ... (FKA Gergely Nagy 🐁) on 2024-12-02 at 09:34

@cimm Nah, not interested in graphs. This is meant to be a very simple tool that shows me what's hogging my network, and nothing more. Graphs and the like are not useful information in this case. (I have proper monitoring apps for that, would I need it)

=> More informations about this toot | More toots from algernon@trunk.mad-scientist.club

Written by GΓ‘bor SEBESTYΓ‰N πŸ‡­πŸ‡ΊπŸ‡ͺπŸ‡ΊπŸ‡ΊπŸ‡¦ on 2024-12-02 at 09:10

@algernon πŸ‘† πŸ‘†

=> More informations about this toot | More toots from segabor@czinege.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113576893917294451
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
350.365339 milliseconds
Gemini-to-HTML Time
4.280682 milliseconds

This content has been proxied by September (ba2dc).