Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.06 KB

README.org

File metadata and controls

40 lines (32 loc) · 1.06 KB

Usage

Put:

(load-module "cpu")

In your ~/.stumpwmrc

Then you can use %C in your mode line format:

(setf *screen-mode-line-format*
      (list "[%n]"                      ; Groups
            "%v"                        ; Windows
            "^>"                        ; Push right
            " | %C"                     ; CPU module
            " | %d"))                   ; Clock

You can customize what’s displayed in CPU module by changing the cpu::*cpu-modeline-fmt* variable in your init.lisp:

(setf cpu::*cpu-modeline-fmt* "%c %t") ; default is "%c (%f) %t"
CodeResult
%%A literal ‘%’
%cCPU usage
%CCPU usage graph
%fCPU frequency
%rCPU frequency range
%tCPU temperature

You can see the rest of the variables in the cpu.lisp file.

Notes

This is specific to Linux.