Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

plattfot/cpu-histogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom module for waybar to show the cpu usage as a histogram.

Based on the cpu module from waybar.

Usage

waybar

In the config file, use:

    "custom/cpu-hist": {
        "format": "{}",
        "return-type": "json",
        "exec": "/path/to/cpu-hist 2> /dev/null",
        "interval": 10
    },

Building from source

dependencies

Install these with your package manager

build

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.

Using guix

Run guix package -f build-scripts/guix.scm and it will build and install it to your current profile.