Skip to content

Commit 5225545

Browse files
committed
Add readme
1 parent fb254ed commit 5225545

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# CPU usage monitor
2+
3+
## TL;DR
4+
5+
* shows CPU usage percentage
6+
* needs systemd (kinda)
7+
* made for i3blocks
8+
9+
# Description
10+
11+
Intended for use on systemd systems. Maybe uncomment line 9 and comment out
12+
line 10 if you're not using systemd. (At the expense of a ridiculously slim
13+
chance of a hypothetical symlink attack)
14+
15+
This tool will output the CPU usage percentage to stdout and then exit. The
16+
first run will produce the output "nan%" but the rest will be fine. Designed
17+
for i3blocks as a drop-in replacement for the existing script. The existing one
18+
lingers around for a short moment and shows CPU usage between program start and
19+
finish, but this one shows CPU usage between invocations instead, which means
20+
that all you need to do to change the resolution in i3blocks is to change the
21+
i3blocks "interval" as with any other program.
22+
23+
# How to build
24+
25+
1. install dune (the ocaml build tool)
26+
2. `dune build`

0 commit comments

Comments
 (0)