rishuinfinity / InternetSpeedMonitor

A Gnome Extension to show Internet Upload Speed, Download Speed and Daily Data Used in a minimal fashion.
GNU General Public License v3.0
18 stars 8 forks source link

[Feature Request] Please add up down upload download style. #1

Closed tazihad closed 11 months ago

tazihad commented 2 years ago

An option to enable Download and upload speed by up down. Not side by side. like this. hqdefault

rishuinfinity commented 2 years ago

Hey, I currently don't have a stable concrete solution for it, but you can try the following to achieve this.

Replace

    if(settings.get_boolean('separate-format'))
    {
      finaltext += "↑ " + netSpeedFormat(uploadSpeed) + " ↓ " + netSpeedFormat(downloadSpeed);
    } else {
      finaltext += "⇅ " + netSpeedFormat(uploadSpeed+downloadSpeed);
    }

with

    if(settings.get_boolean('separate-format'))
    {
      finaltext += "↑ " + netSpeedFormat(uploadSpeed) + "\n↓ " + netSpeedFormat(downloadSpeed);
    } else {
      finaltext += "⇅ " + netSpeedFormat(uploadSpeed+downloadSpeed);
    }

in ~/.local/share/gnome-shell/extensions/InternetSpeedMonitor@Rishu

Make sure that your panel height is enough to show both lines, otherwise increase the panel height or decrease your font size.

If I am able to find a stable solution, then I'll update the extension with it in the future.