fixing autotool stuff
[monky] / doc / conky.1
1 .\" -*- coding: us-ascii -*-
2 .TH conky 1 2005-08-18  
3 .SH NAME
4 conky \- a system monitor for X originally based on the torsmo code, but more kickass.
5 .SH SYNOPSIS
6 .ad l
7 \fBconky\fR \kx
8 .if (\nxu > (\n(.lu / 2)) .nr x (\n(.lu / 5)
9 'in \n(.iu+\nxu
10 [\fBoptions\fR]
11 'in \n(.iu-\nxu
12 .ad b
13 .SH DESCRIPTION
14 Conky is a system monitor for X originally based on the torsmo code. 
15 Since it's original conception, Conky has changed a fair bit from it's predecessor. 
16 Conky can display just about anything, either on your root desktop or in it's own window. 
17 Conky has many built-in objects, as well as the ability to execute programs and scripts, 
18 then display the output from stdout.
19 .PP
20 We are always looking for help, and anyone interested in becoming a developer is welcome. 
21 Please use the facilities at SourceForge to make bug reports, feature requests, and submit patches.
22 .PP
23 Thanks for your interest in Conky.
24 .SH COMPILING
25 To compile and run Conky with all optional components (If you run Gentoo, see the "Ebuild" Section below):
26 .TP 
27 \fBsh autogen.sh\fR \fB# Only required if building from CVS\fR 
28 .TP 
29 \fB\&./configure \fR\fB\-\-prefix=/usr \-\-mandir=/usr/share/man \-\-infodir=/usr/share/info \-\-datadir=/usr/ share \-\-sysconfdir=/etc \-\-localstatedir=/var/lib \-\-enable\-double\-buffer \-\-enable\-own\-window \-\-enable\-proc\-uptime \-\-enable\-mpd \-\-enable\-xft \-\-enable\-seti\fR 
30 .TP 
31 \fBmake\fR 
32 .TP 
33 \fB\&./conky\fR 
34 .PP
35 Conky doesn't probably compile with other compilers than gcc and icc. 
36 It doesn't compile with C89 compiler and not even with pure C99.
37 It uses few things that might not exist: strdup(), strcasecmp(), strncasecmp(), 
38 optarg variable with getopt() and long long (not in C89). Crashes in file system
39 statistics stuff when compiled with icc, I don't know exactly why.
40 .PP
41 You can disable 'drawing to own window' feature in case you don't need it by passing 
42 --disable-own-window to configure -script.
43 .PP
44 Conky is in Gentoo's Portage. Simply use "emerge conky" to install conky. 
45 There is also usually an up-to-date ebuild within Conky's package or in CVS.
46 .SH "YOU SHOULD KNOW"
47 Conky is generally very good on resources. However, certain objects in
48 Conky are harder on resources then others. In particular, the $tail,
49 $top, $font, and $graph objects are quite costly in comparison to the rest of Conky.
50 .PP
51 If you do use them, please do not complain about memory or CPU usage, 
52 unless you think something is going seriously wrong (mem leak, et cetera).
53 .SH OPTIONS
54 Command line options override configurations defined in configuration file.
55 .TP 
56 \fB\-V\fR
57 Prints version and exits
58
59 .TP 
60 \fB\-a \fR\fBALIGNMENT\fR
61 Text alignment on screen, {top,bottom}_{left,right} or none
62
63 .TP 
64 \fB\-b\fR
65 Use double buffering (eliminates flicker)
66
67 .TP 
68 \fB\-c \fR\fBFILE\fR
69 Config file to load instead of $HOME/.conkyrc
70
71 .TP 
72 \fB\-d\fR
73 Daemonize, fork to background
74
75 .TP 
76 \fB\-f \fR\fBFONT\fR
77 Font to use
78
79 .TP 
80 \fB\-h\fR
81 Prints command line help and exits
82
83 .TP 
84 \fB\-o\fR
85 Create own window to draw
86
87 .TP 
88 \fB\-t \fR\fBTEXT\fR
89 Text to render, remember single quotes, like -t ' $uptime '
90
91 .TP 
92 \fB\-u \fR\fBSECONDS\fR
93 Update interval
94
95 .TP 
96 \fB\-w \fR\fBWIN_ID\fR
97 Window id to draw
98
99 .TP 
100 \fB\-x \fR\fBX_COORDINATE\fR
101 X position
102
103 .TP 
104 \fB\-y \fR\fBY_COORDINATE\fR
105 Y position
106
107 .SH "CONFIGURATION SETTINGS"
108 Default configuration file is $HOME/.conkyrc (can be changed from
109 conky.c among other things). See conkyrc.sample. You might want to copy
110 it to $HOME/.conkyrc and then start modifying it.
111 .TP 
112 \fBalignment\fR
113 Aligned position on screen, may be top_left, top_right, bottom_left, bottom_right, or none
114
115 .TP 
116 \fBbackground\fR
117 Boolean value, if true, Conky will be forked to background when started
118
119 .TP 
120 \fBon_bottom\fR
121 Set conky on the bottom of all other applications
122
123 .TP 
124 \fBborder_margin\fR
125 Border margin in pixels
126
127 .TP 
128 \fBborder_width\fR
129 Border width in pixels
130
131 .TP 
132 \fBcpu_avg_samples\fR
133 The number of samples to average for CPU monitoring
134
135 .TP 
136 \fBdefault_color\fR
137 Default color and border color
138
139 .TP 
140 \fBdefault_shade_color\fR
141 Default shading color and border's shading color
142
143 .TP 
144 \fBdefault_outline_color\fR
145 Default outline color
146
147 .TP 
148 \fBdouble_buffer\fR
149 Use the Xdbe extension? (eliminates flicker) It is highly recommended to use own window with this one so double buffer won't be so big.
150
151 .TP 
152 \fBdraw_borders\fR
153 Draw borders around text?
154
155 .TP 
156 \fBdraw_shades\fR
157 Draw shades?
158
159 .TP 
160 \fBdraw_outline\fR
161 Draw outlines?
162
163 .TP 
164 \fBfont\fR
165 Font name in X, xfontsel can be used to get a nice font
166
167 .TP 
168 \fBgap_x\fR
169 Gap between right or left border of screen, same as passing -x at command line
170
171 .TP 
172 \fBgap_y\fR
173 Gap between top or bottom border of screen, same as passing -y at command line
174
175 .TP 
176 \fBno_buffers\fR
177 Substract (file system) buffers from used memory?
178
179 .TP 
180 \fBmail_spool\fR
181 Mail spool for mail checking
182
183 .TP 
184 \fBminimum_size\fR
185 Minimum size of window
186
187 .TP 
188 \fBmldonkey_hostname\fR
189 Hostname for mldonkey stuff, defaults to localhost
190
191 .TP 
192 \fBmldonkey_port\fR
193 Mldonkey port, 4001 default
194
195 .TP 
196 \fBmldonkey_login\fR
197 Mldonkey login, default none
198
199 .TP 
200 \fBmldonkey_password\fR
201 Mldonkey password, default none
202
203 .TP 
204 \fBmpd_host\fR
205 Host of MPD server
206
207 .TP 
208 \fBmpd_post\fR
209 Port of MPD server
210
211 .TP 
212 \fBmpd_password\fR
213 MPD server password
214
215 .TP 
216 \fBnet_avg_samples\fR
217 The number of samples to average for net data
218
219 .TP 
220 \fBoverride_utf8_locale\fR
221 Force UTF8? requires XFT
222
223 .TP 
224 \fBown_window\fR
225 Boolean, create own window to draw?
226
227 .TP 
228 \fBpad_percents\fR
229 Pad percentages to this many decimals (0 = no padding)
230
231 .TP 
232 \fBstippled_borders\fR
233 Border stippling (dashing) in pixels
234
235 .TP 
236 \fBtotal_run_times\fR
237 Total number of times for Conky to update before quitting. Zero makes Conky run forever
238
239 .TP 
240 \fBupdate_interval\fR
241 Update interval in seconds
242
243 .TP 
244 \fBuppercase\fR
245 Boolean value, if true, text is rendered in upper case
246
247 .TP 
248 \fBuse_spacer\fR
249 Adds spaces after certain objects to stop them from moving other things around. Note that this only helps if you are using a mono font, such as Bitstream Vera Sans Mono.
250
251 .TP 
252 \fBuse_xft\fR
253 Use Xft (anti-aliased font and stuff)
254
255 .TP 
256 \fBtext\fR
257 After this begins text to be formatted on screen
258
259 .SH VARIABLES
260 Colors are parsed using XParsecolor(), there might be a list of them:
261 /usr/X11R6/lib/X11/rgb.txt. Also, 
262 http://sedition.com/perl/rgb.html [http://sedition.com/perl/rgb.html]
263 Color can be also in #rrggbb format (hex).
264 Note that when displaying bytes, power is 1024 and not 1000 so 1M really
265 means 1024*1024 bytes and not 1000*1000.
266 .TP 
267 \fBaddr\fR \fB(interface)\fR 
268 IP address for an interface
269
270 .TP 
271 \fBacpiacadapter\fR 
272 ACPI ac adapter state.
273
274 .TP 
275 \fBacpifan\fR 
276 ACPI fan state
277
278 .TP 
279 \fBacpitemp\fR 
280 ACPI temperature in C.
281
282 .TP 
283 \fBacpitempf\fR 
284 ACPI temperature in F.
285
286 .TP 
287 \fBadt746xcpu\fR 
288 CPU temperature from therm_adt746x
289
290 .TP 
291 \fBadt746xfan\fR 
292 Fan speed from therm_adt746x
293
294 .TP 
295 \fBalignr\fR \fB(num)\fR 
296 Right-justify text, with space of N
297
298 .TP 
299 \fBalignc\fR \fB(num)\fR 
300 Align text to centre
301
302 .TP 
303 \fBbattery\fR \fB(num)\fR 
304 Remaining capacity in ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).
305
306 .TP 
307 \fBbuffers\fR 
308 Amount of memory buffered
309
310 .TP 
311 \fBcached\fR 
312 Amount of memory cached
313
314 .TP 
315 \fBcolor\fR \fB(color)\fR 
316 Change drawing color to color
317
318 .TP 
319 \fBcpu\fR 
320 CPU usage in percents
321
322 .TP 
323 \fBcpubar\fR \fB(height),(width)\fR 
324 Bar that shows CPU usage, height is bar's height in pixels
325
326 .TP 
327 \fBcpugraph\fR \fB(height),(width) (gradient colour 1) (gradient colour 2)\fR 
328 CPU usage graph, with optional colours in hex, minus the #.
329
330 .TP 
331 \fBdownspeed\fR \fBnet\fR 
332 Download speed in kilobytes
333
334 .TP 
335 \fBdownspeedf\fR \fBnet\fR 
336 Download speed in kilobytes with one decimal
337
338 .TP 
339 \fBdownspeedgraph\fR \fBnet, (height),(width) (gradient colour 1) (gradient colour 2)\fR 
340 Download speed graph, colours defined in hex, minus the #.
341
342 .TP 
343 \fBelse\fR 
344 Text to show if any of the above are not true
345
346 .TP 
347 \fBexec\fR \fBshell command\fR 
348 Executes a shell command and displays the output in conky. warning: this takes a lot more resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch.
349
350 .TP 
351 \fBexecbar\fR \fBshell command\fR 
352 Same as exec, except if the first value return is a value between 0-100, it will use that number for a bar. The size for the bar is currently fixed, but that may change in the future.
353
354 .TP 
355 \fBexecgraph\fR \fBshell command\fR 
356 Same as execbar, but graphs values
357
358 .TP 
359 \fBexeci\fR \fBinterval, shell command\fR 
360 Same as exec but with specific interval. Interval can't be less than update_interval in configuration.
361
362 .TP 
363 \fBfont\fR \fBfont\fR 
364 Specify a different font. Only applies to one line.
365
366 .TP 
367 \fBfreq\fR 
368 Returns CPU frequency in MHz
369
370 .TP 
371 \fBfreq_g\fR 
372 Returns CPU frequency in GHz
373
374 .TP 
375 \fBfs_bar\fR \fB(height),(width) fs\fR 
376 Bar that shows how much space is used on a file system. height is the height in pixels. fs is any file on that file system.
377
378 .TP 
379 \fBfs_free\fR \fB(fs)\fR 
380 Free space on a file system available for users.
381
382 .TP 
383 \fBfs_free_perc\fR \fB(fs)\fR 
384 Free percentage of space on a file system available for users.
385
386 .TP 
387 \fBfs_size\fR \fB(fs)\fR 
388 File system size
389
390 .TP 
391 \fBfs_used\fR \fB(fs)\fR 
392 File system used space
393
394 .TP 
395 \fBhr\fR \fB(height)\fR 
396 Horizontal line, height is the height in pixels
397
398 .TP 
399 \fBi2c\fR \fB(dev), type, n\fR 
400 I2C sensor from sysfs (Linux 2.6). dev may be omitted if you have only one I2C device. type is either in (or vol) meaning voltage, fan meaning fan or temp/tempf (first in C, second in F) meaning temperature. n is number of the sensor. See /sys/bus/i2c/devices/ on your local computer.
401
402 .TP 
403 \fBif_running\fR \fB(process)\fR 
404 if PROCESS is running, display everything if_running and the matching $endif
405
406 .TP 
407 \fBif_existing\fR \fB(file)\fR 
408 if FILE exists, display everything between if_existing and the matching $endif
409
410 .TP 
411 \fBif_mounted\fR \fB(mountpoint)\fR 
412 if MOUNTPOINT is mounted, display everything between if_mounted and the matching $endif
413
414 .TP 
415 \fBkernel\fR 
416 Kernel version
417
418 .TP 
419 \fBlinkstatus\fR \fB(interface)\fR 
420 Get the link status for wireless connections
421
422 .TP 
423 \fBloadavg\fR 
424 (1,2,3)> System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
425
426 .TP 
427 \fBmachine\fR 
428 Machine, i686 for example
429
430 .TP 
431 \fBmails\fR 
432 Mail count in mail spool. You can use program like fetchmail to get mails from some server using your favourite protocol. See also new_mails.
433
434 .TP 
435 \fBmem\fR 
436 Amount of memory in use
437
438 .TP 
439 \fBmembar\fR \fB(height),(width)\fR 
440 Bar that shows amount of memory in use
441
442 .TP 
443 \fBmemmax\fR 
444 Total amount of memory
445
446 .TP 
447 \fBmemperc\fR 
448 Percentage of memory in use
449
450 .TP 
451 \fBml_upload_counter\fR 
452 total session upload in mb
453
454 .TP 
455 \fBml_download_counter\fR 
456 total session download in mb
457
458 .TP 
459 \fBml_nshared_files\fR 
460 number of shared files
461
462 .TP 
463 \fBml_shared_counter\fR 
464 total session shared in mb, buggy in some mldonkey versions
465
466 .TP 
467 \fBml_tcp_upload_rate\fR 
468 tcp upload rate in kb/s
469
470 .TP 
471 \fBml_tcp_download_rate\fR 
472 tcp download rate in kb/s
473
474 .TP 
475 \fBml_udp_upload_rate\fR 
476 udp upload rate in kb/s
477
478 .TP 
479 \fBml_udp_download_rate\fR 
480 udp download rate in kb/s
481
482 .TP 
483 \fBml_ndownloaded_files\fR 
484 number of completed files
485
486 .TP 
487 \fBml_ndownloading_files\fR 
488 number of downloading files
489
490 .TP 
491 \fBmpd_artist\fR 
492 Artist in current MPD song must be enabled at compile
493
494 .TP 
495 \fBmpd_album\fR 
496 Album in current MPD song
497
498 .TP 
499 \fBmpd_bar\fR \fB(height),(width)\fR 
500 Bar of mpd's progress
501
502 .TP 
503 \fBmpd_bitrate\fR 
504 Bitrate of current song
505
506 .TP 
507 \fBmpd_status\fR 
508 Playing, stopped, et cetera.
509
510 .TP 
511 \fBmpd_title\fR 
512 Title of current MPD song
513
514 .TP 
515 \fBmpd_vol\fR 
516 MPD's volume
517
518 .TP 
519 \fBmpd_elapsed\fR 
520 Song's elapsed time
521
522 .TP 
523 \fBmpd_length\fR 
524 Song's length
525
526 .TP 
527 \fBmpd_percent\fR 
528 Percent of song's progress
529
530 .TP 
531 \fBnew_mails\fR 
532 Unread mail count in mail spool.
533
534 .TP 
535 \fBnodename\fR 
536 Hostname
537
538 .TP 
539 \fBoutlinecolor\fR \fB(color)\fR 
540 Change outline color
541
542 .TP 
543 \fBpre_exec\fR \fBshell command\fR 
544 Executes a shell command one time before conky displays anything and puts output as text.
545
546 .TP 
547 \fBprocesses\fR 
548 Total processes (sleeping and running)
549
550 .TP 
551 \fBrunning_processes\fR 
552 Running processes (not sleeping), requires Linux 2.6
553
554 .TP 
555 \fBshadecolor\fR \fB(color)\fR 
556 Change shading color
557
558 .TP 
559 \fBstippled_hr\fR \fB(space)\fR 
560 Stippled (dashed) horizontal line
561
562 .TP 
563 \fBswapbar\fR \fB(height),(width)\fR 
564 Bar that shows amount of swap in use
565
566 .TP 
567 \fBswap\fR 
568 Amount of swap in use
569
570 .TP 
571 \fBswapmax\fR 
572 Total amount of swap
573
574 .TP 
575 \fBswapperc\fR 
576 Percentage of swap in use
577
578 .TP 
579 \fBsysname\fR 
580 System name, Linux for example
581
582 .TP 
583 \fBoffset\fR \fB(pixels)\fR 
584 Move text over by N pixels. See also $voffset.
585
586 .TP 
587 \fBtail\fR 
588 logfile, lines interval> Displays last N lines of supplied text text file. If interval is not supplied, Conky assumes 2x Conky's interval. Max of 30 lines. Max of 30 lines can be displayed.
589
590 .TP 
591 \fBtime\fR \fB(format)\fR 
592 Local time, see man strftime to get more information about format
593
594 .TP 
595 \fBtotaldown\fR \fBnet\fR 
596 Total download, overflows at 4 GB on Linux with 32-bit arch and there doesn't seem to be a way to know how many times it has already done that before conky has started.
597
598 .TP 
599 \fBtop\fR \fBtype, num\fR 
600 This takes arguments in the form:top (name) (number) Basically, processes are ranked from highest to lowest in terms of cpu usage, which is what (num) represents. The types are: "name", "pid", "cpu", and mem". There can be a max of 10 processes listed.
601
602 .TP 
603 \fBtop_mem\fR \fBtype, num\fR 
604 Same as top, except sorted by mem usage instead of cpu
605
606 .TP 
607 \fBtotalup\fR \fBnet\fR 
608 Total upload, this one too, may overflow
609
610 .TP 
611 \fBupdates\fR \fBNumber of updates\fR 
612 for debugging
613
614 .TP 
615 \fBupspeed\fR \fBnet\fR 
616 Upload speed in kilobytes
617
618 .TP 
619 \fBupspeedf\fR \fBnet\fR 
620 Upload speed in kilobytes with one decimal
621
622 .TP 
623 \fBupspeedgraph\fR \fBnet, (height),(width) (gradient colour 1) (gradient colour 2)\fR 
624 Upload speed graph, colours defined in hex, minus the #.
625
626 .TP 
627 \fBuptime\fR 
628 Uptime
629
630 .TP 
631 \fBuptime_short\fR 
632 Uptime in a shorter format
633
634 .TP 
635 \fBseti_prog\fR 
636 Seti@home current progress
637
638 .TP 
639 \fBseti_progbar\fR \fB(height),(width)\fR 
640 Seti@home current progress bar
641
642 .TP 
643 \fBseti_credit\fR 
644 Seti@home total user credit
645
646 .TP 
647 \fBvoffset\fR \fB(pixels)\fR 
648 Change verticle offset by N pixels. Negative values will cause text to overlap. See also $offset.
649
650 .SH EXAMPLES
651 .TP 
652 conky \fB\-t '${time %D %H:%m}' \-o \-u 30\fR
653 Start Conky in its own window with date and clock as text and 30 sec update interval.
654 .TP 
655 conky \fB\-a top_left \-x 5 \-y 500 \-d\fR
656 Start Conky to background at coordinates (5, 500).
657 .SH FILES
658 \fB~/.conkyrc\fR default configuration file
659 .SH BUGS
660 Drawing to root or some other desktop window directly doesn't work with 
661 all window managers. Especially doesn't work well with Gnome and it has 
662 been reported that it doesn't work with KDE either. Nautilus can be 
663 disabled from drawing to desktop with program gconf-editor. Uncheck 
664 show_desktop in /apps/nautilus/preferences/. There is -w switch in Conky 
665 to set some specific window id. You might find xwininfo -tree useful to 
666 find the window to draw to. You can also use -o argument which makes
667 Conky to create its own window.
668 .SH "SEE ALSO"
669 http://conky.sourceforge.net [http://conky.sourceforge.net]
670 .PP
671 http://www.sourceforge.net/projects/conky [http://www.sourceforge.net/projects/conky]
672 .PP
673 #conky on irc.freenode.net
674 .SH AUTHORS
675 The Conky dev team. What's up now??!