panel

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

panel

panel is an xfce4-genmon-compatible tool for displaying system information. Its output is numeric statistics with icons. It is written in Go.

Installation

go install crdx.org/panel@latest

Usage

Configure xfce4-genmon to run the binary at the desired interval. Every two seconds is recommended.

Segments

Each segment is shown without a unit to save space, and they remain consistent so they can be memorised.

The values are shown at a consistent number of significant figures so that fluctuations in the values do not move the numbers on the panel around (as this is jarring).

CPU Load

The 1-minute CPU load average value from /proc/loadavg.

Unit: load average to 3 sf and up to 1 dp.

Temperature

The CPU and maybe GPU temperature.

The CPU temperature is read from a call to sensors coretemp-isa-0000, preferring the first value from [Tdie, Package id 0].

The GPU temperature is read from a call to nvidia-smi if the binary exists, otherwise not displayed.

Systems vary wildly so this segment may need some tweaking.

Unit: celcius to 2 sf and 0 dp.

Network Up/Down

Network traffic from interfaces matching ^(enp|eno|wlp) summed up from /proc/net/dev.

Unit: gigabytes to 4 sf and up to 3 dp.

Memory Usage

Total system memory usage calculated from /proc/meminfo in the same way as free does it.

Unit: gigabyes to 3 sf and up to 2 dp.

Contributions

Open an issue or send a pull request.

Licence

GPLv3.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL