Custom module for waybar to show the cpu usage as a histogram.
Based on the cpu module from waybar.
In the config
file, use:
"custom/cpu-hist": {
"format": "{}",
"return-type": "json",
"exec": "/path/to/cpu-hist 2> /dev/null",
"interval": 10
},
Install these with your package manager
To build and install the binary to $HOME/bin
.
meson --buildtype=release --prefix=$HOME --unity=on build
ninja -C build
ninja -C build install
If you want to install it somewhere else change --prefix
. And if you
want to package it up before installing use DESTDIR=pkg ninja -C build install
. Where DESTDIR
is relative to the build
directory.
Run guix package -f build-scripts/guix.scm
and it will build and
install it to your current profile.