Coder Social home page Coder Social logo

meskobalazs / gnome-shell-system-monitor-applet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paradoxxxzero/gnome-shell-system-monitor-applet

0.0 2.0 0.0 1.54 MB

Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…

License: GNU General Public License v3.0

Shell 5.67% JavaScript 84.28% CSS 2.58% Makefile 3.14% Roff 1.18% Python 3.15%

gnome-shell-system-monitor-applet's Introduction

GNOME Shell system monitor extension

Build Status

screenshot-small

screenshot-mid

screenshot-large

Installation

Prerequisites

This extension requires GNOME Shell v3.26 or later.

Before installing this extension, ensure you have the necessary system packages installed:

  • On Ubuntu:

    $ sudo apt install gir1.2-gtop-2.0 gir1.2-nm-1.0 gir1.2-clutter-1.0 gnome-system-monitor
    
  • On Debian:

    $ sudo apt install gir1.2-gtop-2.0 gir1.2-nm-1.0 gir1.2-clutter-1.0 gnome-system-monitor
    
  • On Fedora:

    $ sudo dnf install libgtop2-devel NetworkManager-libnm-devel gnome-system-monitor
    
  • On Arch Linux:

    $ sudo pacman -S libgtop networkmanager gnome-system-monitor clutter
    
  • On openSUSE (Leap 42.1):

    $ sudo zypper install gnome-shell-devel libgtop-devel libgtop-2_0-10 gnome-system-monitor
    
  • On Mageia 64-bit (just remove "64" on i586):

    $ sudo urpmi lib64gtop-gir2.0 lib64nm-gir1.0 lib64clutter-gir1.0 gnome-system-monitor
    

    or

    $ sudo dnf install lib64gtop-gir2.0 lib64nm-gir1.0 lib64clutter-gir1.0 gnome-system-monitor
    

Additionally, if you have an NVIDIA graphics card, and want to monitor its memory usage, you'll need to install nvidia-smi.

For the browser installation (recommended), you will need the GNOME Shell integration browser extension for Chrome, Firefox or Opera.

Note: If you're using Firefox 52 or later, you will also need to install chrome-gnome-shell. The instructions are available on the GNOME wiki.

Browser installation

It's recommended you install the extension via the Gnome Shell Extensions website.

Visit this extension's page on extensions.gnome.org, preferably in Firefox, and install by clicking the toggle button next to the extension's name.

If the install was successful, the toggle button should now show "ON". If it failed, ensure that you installed all the necessary dependencies, and that you granted the browser permission to install extensions when prompted. Additionally, rebooting gnome-shell may help (type Alt + F2 and input r in the prompt), but it won't work with Wayland.

Repository installation

  • Extension is in Fedora onwards (up to Fedora 33, last update) and Rawhide repositories, you can install it for all users with the following command:

    $ sudo dnf install gnome-shell-extension-system-monitor-applet
    
  • Enable it with gnome-tweak-tool or gnome-shell-extension-tool [email protected]

Manual installation

Download the ZIP/Tarball, extract the archive, open a shell into its directory, and run:

make install

Alternately, if you plan on doing development on the extension, or testing modifications, it's advised you checkout the Git repository and install a symlink. First, install git if you don't have it: (sudo apt-get install git-core, sudo pacman -S git, etc.), then run:

GIT_PROJECTS=~/git_projects
PROJECT_NAME=gnome-shell-system-monitor-applet
mkdir $GIT_PROJECTS
cd $GIT_PROJECTS
git clone git://github.com/paradoxxxzero/gnome-shell-system-monitor-applet.git $PROJECT_NAME
mkdir -p ~/.local/share/gnome-shell/extensions
cd ~/.local/share/gnome-shell/extensions
{ [ -d "./$PROJECT_NAME" ] || [ -L "./$PROJECT_NAME" ]; } && rm -Rf "./$PROJECT_NAME"
ln -s $GIT_PROJECTS/gnome-shell-system-monitor-applet/$PROJECT_NAME
gnome-shell-extension-tool --enable-extension=$PROJECT_NAME
gnome-extensions enable [email protected]

And reload GNOME Shell (Alt + F2, then r) or restart your GNOME session if you are using Wayland.

On openSUSE you need to install a devel package that provides the gnome-shell-extension-tool command:

$ sudo zypper install gnome-shell-devel

Development

Translation

If we do not have the translation for your language and you want to translate it by yourself, please make a fork, add your po/<YOUR_LANG>/system-monitor-applet.po file, and make a pull request.

Testing

Testing can be done on your native Linux environment using the install instructions above, or through Docker.

To build and run a Docker image:

./build-docker.sh
./run-docker.sh

To connect to the container's desktop through VNC:

./open-docker.sh

Once logged in, you'll still need to manually enable the extension by open the Gnome Tweaks tool.

Afterwards, when you're done testing, you can destroy the container with:

./close-docker.sh

Deployment

  1. To create a ZIP file with the specified version number, ready to upload to GNOME Shell Extensions or similar repository, run:

    make zip-file VERSION=

To determine the version number to use, check the extensions site and increment from the largest published version.

The specified version number is just for documentation and isn't strictly necessary in the uploaded file, since the extensions website will dynamically set this and override whatever we enter.

  1. Once uploaded, create a GitHub release with the same version number.

Authors

paradoxxxzero yuyichao darkxst and many contributors

License

Copyright (C) 2011 Florian Mounier aka paradoxxxzero

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

gnome-shell-system-monitor-applet's People

Contributors

boul51 avatar chrisspen avatar d97jro avatar darkxst avatar devdef avatar ecron avatar eonpatapon avatar esauloff avatar feanor12 avatar federico92 avatar franglais125 avatar kgarner7 avatar lipoja avatar magcius avatar marxin avatar mjkim0727 avatar nvieville avatar p91paul avatar paradoxxxzero avatar peci1 avatar piegamesde avatar pitdicker avatar prehensile avatar reinis avatar return42 avatar rschupp avatar shemgp avatar topodifogna avatar waldyrious avatar yuyichao avatar

Watchers

 avatar  avatar

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.