D-Brox / cosmic-ext-applet-system-monitor

A highly configurable resource monitor applet for the COSMIC DE
GNU General Public License v3.0
11 stars 2 forks source link
cosmic-applet system-monitor

System Monitor Cosmic Applet

A highly configurable system resource monitor for the COSMIC DE

screenshot of the applet

Dependencies

Install

git clone https://github.com/D-Brox/cosmic-ext-applet-system-monitor 
cd cosmic-ext-applet-system-monitor 

For debian based distros you can build and install as a deb package:

just build-deb
sudo just install-deb

For any other distros, run:

just build-release
sudo just install

Roadmap

Configuring

You can configure the charts displayed by editing ~/.config/cosmic/dev.DBrox.CosmicSystemMonitor/v1/charts. Only charts in this config will be displayed. VRAM will be ignored until it is implemented.

The fields update_interval, samples and size are the sampling time in milliseconds, the total number of samples displayed and the size relative to the panel height (top/bottom panels), respectively.

You can use colors defined in CosmicPaletteInner, as well as rgb("") with a hexcode.

Example config where the CPU, RAM, Swap, Net and Disk charts are displayed, in this order:

[
    CPU((
        update_interval: 1000,
        samples: 60,
        size: 1.5,
        color: accent_blue,
    )),
    RAM((
        update_interval: 2000,
        samples: 30,
        size: 1.5,
        color: accent_green,
    )),
    Swap((
        update_interval: 5000,
        samples: 12,
        size: 1.5,
        color: accent_purple,
    )),
     Net((
         update_interval: 1000,
         samples: 60,
         size: 1.5,
         color_up: accent_yellow,
         color_down: accent_red,
     )),
     Disk((
         update_interval: 2000,
         samples: 30,
         color_read: accent_orange,
         color_write: accent_pink,
         size: 1.5,
     )),
    // VRAM((
    //     update_interval: 1000,
    //     samples: 60,
    //     color: accent_indigo,
    //     size: 1.5,
    // )),
]

Contributing

Contributions are welcome

To build and install the debug build

just build-debug && sudo just debug=1 install

Special Thanks