fossfreedom / indicator-sysmonitor

Ayatana application indicator to show various system parameters - Debian and Ubuntu
GNU General Public License v3.0
722 stars 99 forks source link

Quick setup, suited to the desktop interfaces of at least GNOME, MATE and Budgie


if using ayatana based appindicators:

sudo apt install python3-psutil gir1.2-ayatanaappindicator3-0.1

if using ubuntu based appindicators:
sudo apt install python3-psutil gir1.2-appindicator3-0.1

Then:

git clone https://github.com/fossfreedom/indicator-sysmonitor.git
cd indicator-sysmonitor
sudo make install
cd ..
rm -rf indicator-sysmonitor
nohup indicator-sysmonitor &

Output configurations can be accessed by clicking on the Indicator-Sysmonitor applet, selecting Preferences, then Advanced and then entering text into the "Customize output:" text entry field. Some suggested output configurations are as follows:

Standard Setup Example

║{net}  ║{publiccountryiso}║cpu:{cpu}/{cputemp}║m/fs:{mem}/{fs///}║

A setup with Nvidia GPU

║{net}  ║country:{publiccountryiso}║cpu:{cpu}/{cputemp}║gpu:{nvgpu}/{nvgputemp}║m/fs:{mem}/{fs///}║

Another example setup with Nvidia eGPU and AMD iGPU running in the same system

{net}   ║CPU {cpu} {cputemp} ║RD {amdgpu} NV {nvgpu} {nvgputemp} ║ MEM {mem} {swap} ║ {fs///}

Note: nvidia-smi command should work normally and(/or) your card0 should be the radeon gpu. You can test it with this command:

cat /sys/class/drm/card0/device/gpu_busy_percent

If we run this command, we can see the cards:

ls /sys/class/drm/

on the system that was running the config above, card0 is the Radeon integrated GPU and card1 is the external Nvidia GPU.


indicator-sysmonitor image

* Use following string to use custom preview that is shown above. (Proprietary Nvidia driver needed, must be running):

CPU {cpu}  {cputemp}   |  GPU {nvgpu}  {nvgputemp}  |  MEM {mem}  |  SWAP {swap}  |  Net Speed Compact {netcomp}  |  Total Net Speed {totalnet}

Indicator-SysMonitor

An Application Indicator showing cpu temperature, memory, network speed, cpu usage, public IP address and internet connection status .

Works with Unity, Xubuntu, Gnome-Shell + app-indicator extension together with any other desktop environments that support AppIndicators.

Also works with the Budgie-Desktop

Offers the possibility to run your own command and display its output.


Custom scripts

Create your own scripts (for example in bash). Give the script execute permission (chmod +x scriptname)

A script must output one line of text - e.g. using "echo" in bash

The indicator can change the icon being displayed by recognising the output of a sensor "USE_ICON:full_pathto.svg"

Set the display order of the indicator

To force the indicator to appear on the left-side of all indicators you must use a override file as described here:


Installation - Budgie-Desktop:

On budgie-desktop based installation - manual installation

sudo apt-get install python3-psutil curl git
git clone https://github.com/fossfreedom/indicator-sysmonitor.git
cd indicator-sysmonitor
sudo make installbudgie
budgie-panel --replace &

Then use Raven to add the "Panel Sys Monitor" applet

Installation - App Indicator based desktops:

On Ubuntu and derivatives - manual installation

sudo apt-get install python3-psutil curl git gir1.2-appindicator3-0.1
git clone https://github.com/fossfreedom/indicator-sysmonitor.git
cd indicator-sysmonitor
sudo make install
nohup indicator-sysmonitor &

To remove:

cd indicator-sysmonitor
sudo make uninstall

To install the AppIndicator via PPA:

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor

Search in the dash for "indicator-sysmonitor" to run

To install the Budgie Applet via PPA:

open budgie-welcome - Install Software - Budgie Applets

Changelog:

Credits:


Original Author: Alex Eftimie alex@rosedu.org https://launchpad.net/indicator-sysmonitor

Current fork maintainer: fossfreedom foss.freedom@gmail.com