GithubHelp home page GithubHelp logo

mgedmin / indicator-netspeed Goto Github PK

View Code? Open in Web Editor NEW
104.0 10.0 48.0 268 KB

Stupid network speed indicator for Unity, inspired by the old netspeed GNOME applet

Home Page: http://askubuntu.com/questions/30334/list-of-application-indicators/89889#89889

C 100.00%

indicator-netspeed's Introduction

Network speed indicator for Unity

Usage

sudo apt-get install build-essential libgtop2-dev libgtk-3-dev libappindicator3-dev git-core
git clone git://github.com/mgedmin/indicator-netspeed.git
cd indicator-netspeed
make
sudo make install
indicator-netspeed &

The indicator will be put left of all your other indicators. If this is undesirable, the ordering index can be changed in gsettings:/apps/indicators/netspeed (use dconf-editor).

TODO

  • Configuration options only accessible through dconf-editor, add a simple options menu.
  • Allow toggling autostart at login.
  • Do some magic when interfaces are added or disappear.
  • The Makefile is a bit stupid right now and is probably specific to ubuntu.
  • It's not packaged, create deb building scripts.

Credits

Originally written by Marius Gedminas [email protected]

Contributors:

indicator-netspeed's People

Contributors

kjyv avatar mgedmin avatar tobbrandt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

indicator-netspeed's Issues

Ubuntu 14.10 Error

Indicator netspeed not runing:

$ indicator-netspeed

(indicator-netspeed:27762): GLib-GIO-ERROR **: Settings schema 'apps.indicators.netspeed' is not installed

But indicator-netspeed.gschema.xml installed on /usr/share/glib-2.0/schemas/.
Compiling on Ubuntu 14.10 amd64 with Unity.

install fails on ubuntu 14.10 beta final

Here is the output:

denis@denis-portable:~$ sudo apt-get install indicator-netspeed
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
indicator-netspeed : Depends: libgtop2-7 (>= 2.22.3) but it is not installable
E: Unable to correct problems, you have held broken packages.

netspeed does not show ppp0 traffic

I'm connected to the internet through a speedtouch modem, so the used interface is ppp0.
Unfortunately, that interface is not displayed in netspeed interfaces list. Only eth0 and wlan0.

fix ubuntu18.04 unity compile issue

If you are using ubuntu 18.04+, but still using unity desktop, you will find that the original installation of ppa source is also useless, and the download of the source code can not be compiled successfully, prompting the lack of dependent libraries. To solve this problem, I forked the library and made the following changes:

The dependency library libappindicator3-dev was changed to libayatana-appindicator3-dev and the second line of include in the source code was changed to: #include <libayatana-appindicator3-0.1/libayatana- appindicator/app-indicator.h>

The dependency appindicator3-0.1 in the Makefile should be changed to ayatana-appindicator3-0.1 and then it will be compiled and installed successfully.

or you can just use my fork repository: https://github.com/wangbjun/indicator-netspeed

Customization...

I was wondering if there is any way to make this nice port function a bit more like the old applet used to:

  1. Is there any way to convert the displayed values to bits instead of bytes?
  2. Is it possible to display the up & down values without clicking? (perhaps even inverting it and placing the net total in the menu instead?)

Also, perhaps a "quit" choice in the menu? The only way i can shut it off is by killing the process.

This is by no means a demand for you to act upon my questions, just (someone that has no idea how to code :P) hoping for a little help...Thanks very much!

Refresh list of interfaces

I see two options:

  • add a button to the menu that lets the user refresh the list manually
  • refresh it automatically when interfaces change

The second option only works if GTK allows to somehow listen to changes in the interfaces. Does anyone know whether there is an event or signal for that?
We could also poll periodically, but that's really not ideal.

Can’t build dependencies on Ubuntu 14.04

The following packages have unmet dependencies:
libappindicator3-dev : Depends: libdbusmenu-glib-dev (>= 0.1.8) but it is not going to be installed
libgtk-3-dev : Depends: libpango1.0-dev (>= 1.32.4) but it is not going to be installed
               Depends: libcairo2-dev (>= 1.13.0~20140204) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Any suggestions?

Let me choose between displays

Hello!

I finally found a working netspeed indicator for Ubuntu 14.04, but I now realize it only shows the aggregate of both incoming and outcoming traffic which is not completely useful for control freaks like myself.

Here's an idea:
-Have a menu to change the display of the speeds with two options (at least):
--Display both incoming and outcoming traffic
--Display a sum of both traffic speeds

Thank you for taking the time to read this!
(:

feature request : change icon depending on active interface and network status

Hello,
It would be nice if the two arrows icon on left of throughput display changed, depending on the type of active interface (either wireless, wired ethernet, or ppp interface) and the network status (active or not), like it is in Mate netspeed applet. The latter would be most useful to know if the network is active or not (since I use most often a ppp interface, I cannot rely on nm-applet to know it).
Thanks,
Denis

Please update the Code

Program can compiled and installed on new OS'es, but is it possible that the data from speed is next to?

Works with Ubuntu 19.04 and some GIU's.

Memory leak

Hello!

It's a quite nice app you have here. However you might have forgotten to free-up memory somewhere.

top - 14:16:57 up 12 days, 14:06, 11 users,  load average: 1,42, 2,07, 2,27
Tasks: 239 total,   2 running, 237 sleeping,   0 stopped,   0 zombie
%Cpu(s):  9,2 us,  3,4 sy,  0,0 ni, 86,1 id,  1,3 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:   1988524 total,  1754096 used,   234428 free,    37360 buffers
KiB Swap:  6835196 total,   495672 used,  6339524 free,   566900 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND          
 6476 netikras  20   0  856m 100m  53m S   3,7  5,2   1:02.08 chromium-browse   
 2597 netikras  20   0  690m 232m 4108 S   0,4 12,0  43:59.83 indicator-netsp   
netikras@netikras-netbook ~/received $ ps aux |head -1; ps aux |grep -v grep| grep indicator-netsp
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
netikras  2597  0.2 11.9 707180 237920 ?       Sl   Geg07  44:00 /usr/bin/indicator-netspeed
netikras@netikras-netbook ~/received $ free -m
             total       used       free     shared    buffers     cached
Mem:          1941       1672        269          0         36        532
-/+ buffers/cache:       1102        838
Swap:         6674        483       6191
netikras@netikras-netbook ~/received $ uptime
 14:18:34 up 12 days, 14:07, 11 users,  load average: 0,47, 1,59, 2,08

don't really have time right now to bugfix it, maybe later.

Also I will keep it running as far as I can so if you need any more details - don't hesitate to ask.

fatal: remote error

When I type:
---> git clone git://github.com/mgedmin/indicator-netspeed.git
The terminal says:
---> Cloning into 'indicator-netspeed'...
---> fatal: remote error:
---> The unauthenticated git protocol on port 9418 is no longer supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.