File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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 `
You can’t perform that action at this time.
0 commit comments