Skip to content

Coinio/cosmic-vitals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COSMIC Vitals

A minimal applet to display basic system resource usage, i.e. CPU, Memory, Network.

I started building this to learn some Rust and play around with Pop_OS COSMIC. It's definitely a WIP but works pretty well for my needs. Hopefully the code will be useful to somebody else fighting with iced/libcosmic, etc.

Features

  • Show CPU Usage
  • Show RAM Usage
  • Show Network upload / download. This filters out virtual devices so won't count upload / download twice when using a VPN, etc.
  • Show Disk upload / down. This counts reads / writes to logical disks, not partitions, etc.
  • Things that can be configured:
    • Read Intervals - How often each monitor is polled
    • Max Samples - The number of samples to keep to average the readings across
    • Show / Hide each monitor

Things I might fix

  • Calculate the maximum width of the labels so the indicators don't expand / contract
  • Improve the vertical layout
  • Dynamically colour the icons based on the theme accent colours
  • Add configurable units KiBs/MiBs/GiBs or progressively change units depending on how large / small reading is
  • Better logging into journalctl

Screenshots

Horizontal Layout

Horizontal Panel Layout

Vertical Layout

Vertical Panel Layout

Main Settings Page

Main Settings Page (booooring)

Install

To install your COSMIC applet, you will need just, if you're on Pop!_OS, you can install it with the following command:

sudo apt install just

After you install it, you can run the following commands to build and install your applet:

just build-release
sudo just install

About

An minimal COSMIC applet to show basic system stats like cpu, ram and disk usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published