Git Product home page Git Product logo

0ry0n / resource_monitor Goto Github PK

View Code? Open in Web Editor NEW
139.0 3.0 19.0 1.88 MB

Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.

License: GNU General Public License v3.0

JavaScript 99.98% CSS 0.02%
resource-monitor gnome-shell gnome gnome-javascript utility gnome-shell-extension gnome-extension gtk

resource_monitor's Introduction

Resource_Monitor GNOME Shell Extension Get it on GNOME Extensions

License: GPL-3.0

Resource_Monitor is a GNOME Shell extension designed to monitor system resources such as CPU, RAM, disk, and network usage, displaying them in the GNOME Shell top bar.

Main View
Main View

GNOME Shell versions supported

45

How-To Install

From GNOME Extensions

Using the Latest Release

  1. Download the latest Release from GitHub.
  2. Unzip [email protected].
  3. Move the Resource_Monitor@Ory0n folder to ~/.local/share/gnome-shell/extensions/.
  4. Activate the extension using GNOME Extensions.

Preferences

Global Preferences CPU Preferences RAM Preferences
Global Preferences CPU Preferences RAM Preferences
SWAP Preferences DISK Preferences NET Preferences
SWAP Preferences DISK Preferences NET Preferences
THERMAL Preferences GPU Preferences
THERMAL Preferences GPU Preferences

About Units

The units displayed in Resource_Monitor are in K, M, ... (powers of 1024), or KB, MB, ... (powers of 1000).

Bug Reporting

To report issues or request features, please use the GitHub Issues tracker. Include relevant details to help us understand and address the problem efficiently.

Change Log

Version 22 (Jun 3, 2024)

  • Added support for GNOME 46: thanks to @DanielusG.

Version 21 (Jan 2, 2024)

  • Added support for GNOME 45.
  • Fixed left-click custom-program functionality.
  • Other bug fixes.

Authors

  • Giuseppe Silvestro - Initial work - 0ry0n

License

This project is licensed under the GNU GPL-3.0 License - see the LICENSE.md file for details.

resource_monitor's People

Contributors

0ry0n 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

resource_monitor's Issues

Measuring width in pixels is not great for HiDPI

I have a 4K laptop display, and set at 40 units ("pixels" I'm guessing), none of the gauges have room to show anything but the ellipsis ("..."). I recommend using a better unit of measure that would permit scaling with DPI.

Custom name for Disk and GPU

Is your feature request related to a problem? Please describe.
The name of my GPU uses space:

image

Describe the solution you'd like
Add an option to hide the name of the GPU so that I can see only usage and temperature.

Or remove the name of the GPU completely, like we don't see the name of the CPU. Or even go further and display the data about GPU in the same way than for the CPU.

Describe alternatives you've considered

Comment this.add(this._elementsName[uuid]); in ~/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n/extension.js.

Additional context

  • plugin version 18
  • Ubuntu 22.04.1 LTS
  • GNOME Shell 42.5

Thanks for this amazing extension!

Scaling Factor

After change scaling factor to 1.30 in GnomeTweakTools, spacing between texts is too small

Network Indicator does not work

Describe the bug
Network indicator stays all time on 0 upload/download

Expected behavior
Network indicator shows real up/down bandwidth

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 18.04

Additional context
Extension expects a specific output format from '/proc/net/dev' that is not present on my system.

Format on my System

Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
enp3s0: 1422819 3433 0 0 0 0 0 7 645340 3391 0 0 0 0 0 0
tun0: 888265 1774 0 0 0 0 0 0 258858 1861 0 0 0 0 0 0
enp0s31f6: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
lo: 36892 474 0 0 0 0 0 0 36892 474 0 0 0 0 0 0
wlp4s0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Add an option to disable Gnome system monitor start when click on extension

Is your feature request related to a problem? Please describe.
I installed it for novices and they are quite annoyed by the fact that Gnome system monitor is started when they click on the extension.

Describe the solution you'd like
I'd like an option to disable this behavior

Describe alternatives you've considered
I don't think there are alternatives

RAM not showing info

Describe the bug
Ram doesn't show

To Reproduce
Steps to reproduce the behavior:
Just have it normally installed

Expected behavior
Showing RAM percentage used

Screenshots
Screenshot from 2023-01-07 05-34-54

Desktop (please complete the following information):

  • OS: Pop 22_04
  • Gnome 42.5

Extension broke after update

Describe the bug
Extension is inactive and I am not able to use it.

To Reproduce
Update this extension to the latest version.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 18.04

Additional context
Error visible when I tried to open preferences window in gnome tweaks:

TypeError: ExtensionUtils.initTranslations is not a function

Stack trace:
  init@/home/pawelkot/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n/prefs.js:29:3
  _getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:76:9
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
  wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
  main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
  @<main>:1:43

RAM Usage indicator

Is it possible to have an option to choose between percentage and text for ram usage?
I mean, I don't really care about the percentage, I don't know how much RAM 24% is exactly for example

I think it would be more useful to express it as MB/GB used

Disk activity is not displayed for ZFS storage pool

Describe the bug
Disk activity is not displayed for a ZFS storage pool (two drives, mirrored) mounted at /RAID

To Reproduce
Steps to reproduce the behavior:
Mount ZFS storage pool at mountpoint /RAID
In settings check Stats and Space boxs for /RAID
Space - ON
Width=40
Unit = Num/Gig
Mon = Free
Devices
/home - Stats, Space
/RAID - Stats, Space

Expected behavior
Space is displayed but activity is not for the /RAID mountpoint
The /home mountpoint is working correctly

Screenshots

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Version: 18

Additional context
Add any other context about the problem here.

Unable to get preferences on Ubuntu 20.04 dev

Describe the bug
No way to get to the preferences

To Reproduce
Extension works, but no matter where you click on it, you get only system monitor. The widths are shrank and I see only icons and dots. No idea how to change that.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04 development

Change disk and memory units. (kB, KiB, GB, GiB)

Is your feature request related to a problem? Please describe.
Currently, this extension shows memory in obsolete and confusing units.
For example, 1KB is 1024B, 1GB is 1024MB. It is not consistent with
GNOME and the all of Linux that uses either 1kB = 1000B or 1KiB = 1024B.

Describe the solution you'd like
It would be more consistent if this extension used units that GNOME use. Currently
it is 1kB = 1000B.
It would be even better if you could change this, like in default system monitor.

Sorry for my bad English.

[Bug] Broken shadows on focused settings window

Describe the bug
When I click second button on top bar, it'll show settings window. The settings itself works perfect, but shadows around window is broken

Screenshots
image

System:

  • OS: Arch Linux
  • Desktop version: GNOME 41.3

Hide or replace the path of the disks by tag or name, show space free.

It would be nice to be able to hide the path of the disks when showing the space and stats, or better, just replace the path name by a tag or name, in this case you could leave it empty if you don't want any name to be shown. Another nice detail would be to be able to show the disk remaining space instead of the disk current space.

no devices in disk tab

The Disk tab doesn't show devices.
The menu stays at 0|0.

(I have three disks /dev/sda,b,c)

  • OS: debian/bookworm
  • Version: 17 on gnome 42.1

Harddisk LED gnome extension works but I'd like to get rid of it in favor of this one :)

how to user 'Customer program'

Describe the bug

  1. I set the Customer program to alacritty -e htop or /usr/bin/alacritty -e htop.
    left-click, it says: Execution of "alacritty -e htop" failed. Command not found.

  2. set it to htop, left-click, nothing happened.

[Request] Show disk space usage

I cannot see that the extension show disk space usage. It seems to only show the IO for disk. Is this something you will consider adding?

If so, would it be possible to maybe choose from mounts instead of disks or both? In my case I want to monitor a remote system and I figured I could mount the remote system locally and choose that mount in your extension. I guess if we could add labels to the chosen mounts/disks would be pretty nice as well.

Better icons

Is your feature request related to a problem? Please describe.
The icons used are not really ideal.

Describe the solution you'd like
Use different icons for CPU and RAM at least.

Additional context
I actually took the time to search for a list of GTK icons and the ones you used really do come closest, but I think it would be better to ship custom icons instead. There's nice websites nowadays with royalty free icons.

Thanks for considering! Otherwise this is a top extension ❤️

[Temperature Error] on random startups (fixes itself on opening extension settings)

Describe the bug
Some sort of extension initialization issue. Sometimes it just shows [Temperature Error] beside cpu usage & nothing else.
It sort of fixes itself after I open the extension settings (or right click shortcut ingeneral).

To Reproduce
Steps to reproduce the behavior:
It's actually random. I donno how to reproduce it but, it often appears on random startups.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Will post the screenshot soon when I have get it next time

Desktop (please complete the following information):

  • OS: archlinux / gnome-42.3.1
  • Version : 17

support for launch htop on left click

The current applications provided were only GNOME System Monitor & GNOME Usage. Add other applications like htop / btop spawning in their respective terminal sessions.

CPU temperature not being properly reported.

The CPU temperature is directed to acpitz-acpi-0.
Here it reports a the wrong temperature as my CPU runs 30-35C minimum (idle) in both Linux and Windows .
After installing lm-sensors I ran sensors-detect, then the command 'watch -n 1 sensors'.

Here I saw the following.
2021-01-16_06-37

I looked through extension.js and found that it was looking at thermal_zone0 when my CPU was being reported to thermal_zone1. Changing this and reinstalling the extension set the correct temp for my CPU.

From doing some googling I believe the first temp is the CPU Socket temperature.

I'm sure I'm the only person with this problem but I still though to report it just in case.

Take care!

Partial System Specs
1. Motherboard: Asus Prime Z390-A
2. Processor: i9-9900K @ 4.8Ghz
3. Case: Lian Li 205m
4. CPU Cooler: Corsair H100i PRO AIO
5. OS: Ubuntu 5.8.0-38.43~20.04.1-generic 5.8.18

[Feature Request] Fix the units

It would be nice if the user is able to fix the units displayed. Presently (for example for disk IO) the displayed numbers change dynamically with units like B/sec, K/sec, or M/sec (is it per second or per frequency?). I would like an option to set these numbers to MiB/sec for example.

gnome shell warnings in journal

Describe the bug
Often I see the following message in journal log. I attached the log snippet.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 20.04
  • Gnome: 3.36.8

Additional context
deprecated.txt

"Hide zero values" is enabled but a non-existent fan with 0 RPM is displayed and contributes to average.

Describe the bug
"Hide zero values" is enabled but a non-existent fan with 0 RPM is displayed and contributes to average.

This motherboard has never had a 2nd case fan plugged in to the 2nd case fan header, just the cpu cooler fan and a single case fan.

To Reproduce
Steps to reproduce the behavior:

  • Enable "Hide zero values".

  • Either unplug a fan, or do not install one in the first place.

Expected behavior
When "Hide zero values" is enabled only fans with >0 RPM should be displayed and contribute to the average.

Screenshots
image

image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 22.04

FEATURE: GPU Monitor

I'm currently using your extension and I think it's really useful. Though I had to install also another one that let me only visualize my GPU usage and temperature.

If a GPU monitor could be placed in your extension, this product would be perfect and probably the most complete on GNOME Shell Extensions.

Graphical glitches

Describe the bug
After the addition of the Network Unit option in gnome 40 branch, I notice some graphical glitches on network refresh speed which causes the extension unpleasant to watch.

Alternative Icons

Guys, I made alternative icons, looks good on my Ubuntu, if you like it too, you can include them in the extension. I drew them, you can share them however you want.

icons.zip

Internal panel does not resize with preferences window

When increasing the size of the extension's settings window in an attempt to remove scroll bars in tabs with long device names, the interior pane/panel containing the actual options does not resize with the window, amplifying the margins instead of the viewing area.

Window maximized for demonstration:
Example: Window Maximized

open with another resource monitor

I want to open with another resource monitor : https://aur.archlinux.org/packages/system-monitoring-center

i've tried to edit these files:

~/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n grep -Ri system-monitoring-cente *

prefs.js: let leftClick = new RadioButtonRow(this.settings, LEFT_CLICK_STATUS, [('Launch GNOME System Monitor'), _('Launch GNOME Usage')], ['/usr/bin/system-monitoring-center', 'gnome-usage']);

schemas/com.github.Ory0n.Resource_Monitor.gschema.xml: "/usr/bin/system-monitoring-center"

none of these changes works. Any ideas?

Swap monitoring

It would be nice to be able to show how much swap is used

Gnome 42

Can we get support for Gnome 42?
I am running Gnome 42, and the extension is “outdated”

Allow changing of location on taskbar to left side

Is your feature request related to a problem? Please describe.
Yes the right side of the taskbar is the default place for icons and such, it gets cluttered way too easily and the left side is usually left open more.

Describe the solution you'd like
Allow users to switch the position of the entire taskbar from left, center, or right.

Seems really straightforward to me

[Request] Scrolling text

All the useful information shown by this extension unfortunately takes up quite a bit of space on the top panel and often gets cut off. If possible, it would be great to have an option whereby the text could scroll side to side, allowing for more data to be shown without getting cut off and replaced by ellipses—like so:
image

Doesn't work with gnome-shell 3.32

Hey, if you could update this to work with gnome-shell 3.32 that'd be great. Namely since this is the version shipping with Ubuntu 19.04.

Add entry for load average

It'd be great if it could also add a field (and icon) for load average, preferably three entries for the usual 1-, 5-, and 15-minute intervals.

rename pheripheral

the possibility of being able to rename some added peripherals, for example the gpu and being able to reduce the space occupied by this peripheral would be nice

Gnome 40 support and Bps network unit

Hello, thanks for this extension, I use it on Arch to see CPU, RAM and net usage real time.

I'd like to know if it will work on Gnome 40 since the new shell version is coming upstream for the new update.

And I'd like to recommend a new feature. Give an option to show network traffic in Bit/s rather than Byte/s.

Thanks and good work.

No decimals

Feature

No decimals needed

Describe the solution you'd like

No decimals display.

Describe alternatives you've considered

The user could select to display or not the decimals.

extension showing nothing

Describe the bug
extention showing three dots instead of pecentage

Screenshots
Screenshot from 2020-05-05 11-12-29

Desktop (please complete the following information):

  • OS: ubuntu 20.04 freshly installed

Additional context
i use hiDPI laptop with 4k display

Settings window error.

I installed from the On/Off switch from extensions.gnome.org, installation went fine with no errors, but when I try to open the settings window I get an error, "something went wrong", the technical details :
"
TypeError: settings is undefined

Stack trace:
PatternsPrefs@/home/zeon/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n/prefs.js:111:3
buildPrefsWidget@/home/zeon/.local/share/gnome-shell/extensions/Resource_Monitor@Ory0n/prefs.js:298:16
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:75:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17
main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5
@

:1:43
"
I can see the information on my taskbar no problem, but I can't open the settings.

AMD GPU Thermal metrics are miscategorized under CPU

Describe the bug
When trying to monitor my thermal stats on a new AMD RTX 6750XT, the devices are listed under the CPU section instead of GPU, preventing me from using the setting.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Thermal
  3. Scroll down to GPU Temperature > Devices
  4. See that it is blank, and that "amdgpu" devices are listed inder CPU Temperature > Devices

Expected behavior
amdgpu devices should be listed under GPU Devices

Screenshots
image

Desktop (please complete the following information):

  • OS: Pop! OS (Wayland)
  • Version: 22.04

Additional Information
I would like to note that this feature worked perfectly with my previous GPU, an Nvidia GTX 1080 ti.

auto-hide sections with zero values

Is your feature request related to a problem? Please describe.
Nop. It's a pure aesthetic.

Describe the solution you'd like
Auto-hide sections with zero values.
Screenshot from 2022-07-07 21-13-35 png-mh

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.