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.
- 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
- 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
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