-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
79 lines (48 loc) · 1.63 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
------------
tmux-applets
------------
* tmux-cpu-freq - show cpu frequencies as coloured boxes
* tmux-ping - show results of pinging a host as coloured boxes
* tmux-mem - show memory usage as a coloured box
Currently tmux-cpu-freq requires Linux 2.6+ and tmux-mem requires
Linux 2.4+. If you are able to port them to other kernels please
send me patches or a pull request :-)
Installation
------------
Edit the Makefile to your needs. You may wish to change the INSTALL_DIR
and CFLAGS if you wish...
Then run:
$ make
$ make install
Usage in tmux
-------------
In ~/.tmux.conf, edit your status line:
set status-right "#(/path/to/applet <arguments>) #(/path/to/applet2 <arguments>)"
For example, in my configuration I have:
set status-right "#(/home/lucas/bin/tmux-cpu-freq 6) "
set status-interval 1
tmux-cpu-freq
-------------
Usage:
tmux-cpu-freq [<number-of-cpus>]
Or, you can edit NUMBER_CPUS in tmux-cpu-freq.c before compiling it.
You can also customise the colours by editing the level_colours array,
and adjusting MAX_LEVEL_COLOURS if need be.
The reason this configuration is static is since tmux must run the applet
every frequency interval, thus speed is paramount.
tmux-ping
---------
Usage:
tmux-ping <host>
You can change the colours by editing COLOUR_OKAY and COLOUR_ERROR in
tmux-ping.c
tmux-mem
--------
Usage:
tmux-mem
Colours can be customised by editing the level_colours array, and adjusting
MAX_LEVEL_COLOURS if need be.
Contact
-------
Bug reports, etc can be sent to < lmartinking@gmail.com >, or you can use
the github page at: < https://github.com/lmartinking/tmux-applets/issues >