updated makefile to work better
[monky] / README
1 conky(1)                                                              conky(1)
2
3
4
5 NAME
6        conky - a system monitor for X originally based on the torsmo code, but
7        more kickass.
8
9 SYNOPSIS
10        conky [options]
11
12 DESCRIPTION
13        Conky is a system monitor for X originally based on  the  torsmo  code.
14        Since  it's original conception, Conky has changed a fair bit from it's
15        predecessor.  Conky can display just about  anything,  either  on  your
16        root  desktop  or in it's own window.  Conky has many built-in objects,
17        as well as the ability to execute programs and  scripts,  then  display
18        the output from stdout.
19
20        We  are  always  looking  for help, and anyone interested in becoming a
21        developer is welcome.  Please use the facilities at SourceForge to make
22        bug reports, feature requests, and submit patches.
23
24        Thanks for your interest in Conky.
25
26 COMPILING
27        First,  make  sure you have the X development libraries installed, this
28        should be a package along the lines of  "libx11-dev  or  xorg-x11-dev".
29        Gentoo  users,  Conky is in Gentoo's Portage. Simply use "emerge conky"
30        for installation.  There is also usually an  up-to-date  ebuild  within
31        Conky's package or in CVS.
32
33        To compile and run Conky with all optional components:
34
35        sh autogen.sh # Only required if building from CVS
36
37        ./configure            --prefix=/usr            --mandir=/usr/share/man
38        --infodir=/usr/share/info   --datadir=/usr/   share   --sysconfdir=/etc
39        --localstatedir=/var/lib   --enable-double-buffer   --enable-own-window
40        --enable-proc-uptime --enable-mpd --enable-xft --enable-seti
41
42        make
43
44        ./conky
45
46        Conky  doesn't  probably compile with other compilers than gcc and icc.
47        It doesn't compile with C89 compiler and not even with  pure  C99.   It
48        uses  few  things  that  might not exist: strdup(), strcasecmp(), strn-
49        casecmp(), optarg variable with getopt() and long long  (not  in  C89).
50        Crashes in file system statistics stuff when compiled with icc, I don't
51        know exactly why.
52
53        You can disable 'drawing to own window' feature in case you don't  need
54        it by passing --disable-own-window to configure -script.
55
56
57 YOU SHOULD KNOW
58        Conky  is generally very good on resources. However, certain objects in
59        Conky are harder on resources then others. In  particular,  the  $tail,
60        $top,  $font,  and $graph objects are quite costly in comparison to the
61        rest of Conky.
62
63        If you do use them, please do not complain about memory or  CPU  usage,
64        unless  you  think  something  is  going  seriously wrong (mem leak, et
65        cetera).
66
67 OPTIONS
68        Command line options override configurations defined  in  configuration
69        file.
70
71        -V     Prints version and exits
72
73
74        -a ALIGNMENT
75               Text alignment on screen, {top,bottom}_{left,right} or none
76
77
78        -b     Use double buffering (eliminates "flicker")
79
80
81        -c FILE
82               Config file to load instead of $HOME/.conkyrc
83
84
85        -d     Daemonize, fork to background
86
87
88        -f FONT
89               Font to use
90
91
92        -h     Prints command line help and exits
93
94
95        -o     Create own window to draw
96
97
98        -t TEXT
99               Text to render, remember single quotes, like -t ' $uptime '
100
101
102        -u SECONDS
103               Update interval
104
105
106        -w WIN_ID
107               Window id to draw
108
109
110        -x X_COORDINATE
111               X position
112
113
114        -y Y_COORDINATE
115               Y position
116
117
118 CONFIGURATION SETTINGS
119        Default  configuration  file  is  $HOME/.conkyrc  (can  be changed from
120        conky.c among other things). See conkyrc.sample. You might want to copy
121        it to $HOME/.conkyrc and then start modifying it.
122
123        alignment
124               Aligned  position  on  screen,  may be top_left, top_right, bot-
125               tom_left, bottom_right, or none
126
127
128        background
129               Boolean value, if true, Conky will be forked to background  when
130               started
131
132
133        on_bottom
134               Set conky on the bottom of all other applications
135
136
137        border_margin
138               Border margin in pixels
139
140
141        border_width
142               Border width in pixels
143
144
145        cpu_avg_samples
146               The number of samples to average for CPU monitoring
147
148
149        default_color
150               Default color and border color
151
152
153        default_shade_color
154               Default shading color and border's shading color
155
156
157        default_outline_color
158               Default outline color
159
160
161        double_buffer
162               Use the Xdbe extension? (eliminates flicker) It is highly recom-
163               mended to use own window with this one so double buffer won't be
164               so big.
165
166
167        draw_borders
168               Draw borders around text?
169
170
171        draw_shades
172               Draw shades?
173
174
175        draw_outline
176               Draw outlines?
177
178
179        font   Font name in X, xfontsel can be used to get a nice font
180
181
182        gap_x  Gap  between  right or left border of screen, same as passing -x
183               at command line
184
185
186        gap_y  Gap between top or bottom border of screen, same as  passing  -y
187               at command line
188
189
190        no_buffers
191               Substract (file system) buffers from used memory?
192
193
194        mail_spool
195               Mail spool for mail checking
196
197
198        minimum_size
199               Minimum size of window
200
201
202        mldonkey_hostname
203               Hostname for mldonkey stuff, defaults to localhost
204
205
206        mldonkey_port
207               Mldonkey port, 4001 default
208
209
210        mldonkey_login
211               Mldonkey login, default none
212
213
214        mldonkey_password
215               Mldonkey password, default none
216
217
218        mpd_host
219               Host of MPD server
220
221
222        mpd_post
223               Port of MPD server
224
225
226        mpd_password
227               MPD server password
228
229
230        net_avg_samples
231               The number of samples to average for net data
232
233
234        override_utf8_locale
235               Force UTF8? requires XFT
236
237
238        own_window
239               Boolean, create own window to draw?
240
241
242        pad_percents
243               Pad percentages to this many decimals (0 = no padding)
244
245
246        stippled_borders
247               Border stippling (dashing) in pixels
248
249
250        total_run_times
251               Total  number of times for Conky to update before quitting. Zero
252               makes Conky run forever
253
254
255        update_interval
256               Update interval in seconds
257
258
259        uppercase
260               Boolean value, if true, text is rendered in upper case
261
262
263        use_spacer
264               Adds spaces after certain objects to stop them from moving other
265               things around. Note that this only helps if you are using a mono
266               font, such as Bitstream Vera Sans Mono.
267
268
269        use_xft
270               Use Xft (anti-aliased font and stuff)
271
272
273        text   After this begins text to be formatted on screen
274
275
276 VARIABLES
277        Colors are parsed using XParsecolor(), there might be a list  of  them:
278        /usr/X11R6/lib/X11/rgb.txt.   Also,   http://sedition.com/perl/rgb.html
279        [http://sedition.com/perl/rgb.html] Color can be also in #rrggbb format
280        (hex).   Note that when displaying bytes, power is 1024 and not 1000 so
281        1M really means 1024*1024 bytes and not 1000*1000.
282
283        addr (interface)
284               IP address for an interface
285
286
287        acpiacadapter
288               ACPI ac adapter state.
289
290
291        acpifan
292               ACPI fan state
293
294
295        acpitemp
296               ACPI temperature in C.
297
298
299        acpitempf
300               ACPI temperature in F.
301
302
303        adt746xcpu
304               CPU temperature from therm_adt746x
305
306
307        adt746xfan
308               Fan speed from therm_adt746x
309
310
311        alignr (num)
312               Right-justify text, with space of N
313
314
315        alignc (num)
316               Align text to centre
317
318
319        battery (num)
320               Remaining capacity in ACPI or APM battery. ACPI  battery  number
321               can be given as argument (default is BAT0).
322
323
324        buffers
325               Amount of memory buffered
326
327
328        cached Amount of memory cached
329
330
331        color (color)
332               Change drawing color to color
333
334
335        cpu    CPU usage in percents
336
337
338        cpubar (height),(width)
339               Bar that shows CPU usage, height is bar's height in pixels
340
341
342        cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
343               CPU usage graph, with optional colours in hex, minus the #.
344
345
346        downspeed net
347               Download speed in kilobytes
348
349
350        downspeedf net
351               Download speed in kilobytes with one decimal
352
353
354        downspeedgraph  net,  (height),(width)  (gradient  colour  1) (gradient
355        colour 2)
356               Download speed graph, colours defined in hex, minus the #.
357
358
359        else   Text to show if any of the above are not true
360
361
362        exec shell command
363               Executes a shell command and displays the output in conky. warn-
364               ing: this takes a lot more resources than other  variables.  I'd
365               recommend coding wanted behaviour in C and posting a patch.
366
367
368        execbar shell command
369               Same  as  exec,  except  if  the  first  value return is a value
370               between 0-100, it will use that number for a bar. The  size  for
371               the bar is currently fixed, but that may change in the future.
372
373
374        execgraph shell command
375               Same as execbar, but graphs values
376
377
378        execi interval, shell command
379               Same  as exec but with specific interval. Interval can't be less
380               than update_interval in configuration.
381
382
383        font font
384               Specify a different font. Only applies to one line.
385
386
387        freq   Returns CPU frequency in MHz
388
389
390        freq_g Returns CPU frequency in GHz
391
392
393        fs_bar (height),(width) fs
394               Bar that shows how much space is used on a file  system.  height
395               is the height in pixels. fs is any file on that file system.
396
397
398        fs_free (fs)
399               Free space on a file system available for users.
400
401
402        fs_free_perc (fs)
403               Free percentage of space on a file system available for users.
404
405
406        fs_size (fs)
407               File system size
408
409
410        fs_used (fs)
411               File system used space
412
413
414        hr (height)
415               Horizontal line, height is the height in pixels
416
417
418        i2c (dev), type, n
419               I2C  sensor  from  sysfs  (Linux 2.6). dev may be omitted if you
420               have only one I2C device. type is either  in  (or  vol)  meaning
421               voltage, fan meaning fan or temp/tempf (first in C, second in F)
422               meaning  temperature.  n  is   number   of   the   sensor.   See
423               /sys/bus/i2c/devices/ on your local computer.
424
425
426        if_running (process)
427               if  PROCESS  is  running,  display everything if_running and the
428               matching $endif
429
430
431        if_existing (file)
432               if FILE exists, display everything between if_existing  and  the
433               matching $endif
434
435
436        if_mounted (mountpoint)
437               if  MOUNTPOINT is mounted, display everything between if_mounted
438               and the matching $endif
439
440
441        kernel Kernel version
442
443
444        linkstatus (interface)
445               Get the link status for wireless connections
446
447
448        loadavg
449               (1,2,3)> System load average, 1 is for past 1 minute, 2 for past
450               5 minutes and 3 for past 15 minutes.
451
452
453        machine
454               Machine, i686 for example
455
456
457        mails  Mail  count in mail spool. You can use program like fetchmail to
458               get mails from some server using your  favourite  protocol.  See
459               also new_mails.
460
461
462        mem    Amount of memory in use
463
464
465        membar (height),(width)
466               Bar that shows amount of memory in use
467
468
469        memmax Total amount of memory
470
471
472        memperc
473               Percentage of memory in use
474
475
476        ml_upload_counter
477               total session upload in mb
478
479
480        ml_download_counter
481               total session download in mb
482
483
484        ml_nshared_files
485               number of shared files
486
487
488        ml_shared_counter
489               total session shared in mb, buggy in some mldonkey versions
490
491
492        ml_tcp_upload_rate
493               tcp upload rate in kb/s
494
495
496        ml_tcp_download_rate
497               tcp download rate in kb/s
498
499
500        ml_udp_upload_rate
501               udp upload rate in kb/s
502
503
504        ml_udp_download_rate
505               udp download rate in kb/s
506
507
508        ml_ndownloaded_files
509               number of completed files
510
511
512        ml_ndownloading_files
513               number of downloading files
514
515
516        mpd_artist
517               Artist in current MPD song must be enabled at compile
518
519
520        mpd_album
521               Album in current MPD song
522
523
524        mpd_bar (height),(width)
525               Bar of mpd's progress
526
527
528        mpd_bitrate
529               Bitrate of current song
530
531
532        mpd_status
533               Playing, stopped, et cetera.
534
535
536        mpd_title
537               Title of current MPD song
538
539
540        mpd_vol
541               MPD's volume
542
543
544        mpd_elapsed
545               Song's elapsed time
546
547
548        mpd_length
549               Song's length
550
551
552        mpd_percent
553               Percent of song's progress
554
555
556        new_mails
557               Unread mail count in mail spool.
558
559
560        nodename
561               Hostname
562
563
564        outlinecolor (color)
565               Change outline color
566
567
568        pre_exec shell command
569               Executes a shell command one time before conky displays anything
570               and puts output as text.
571
572
573        processes
574               Total processes (sleeping and running)
575
576
577        running_processes
578               Running processes (not sleeping), requires Linux 2.6
579
580
581        shadecolor (color)
582               Change shading color
583
584
585        stippled_hr (space)
586               Stippled (dashed) horizontal line
587
588
589        swapbar (height),(width)
590               Bar that shows amount of swap in use
591
592
593        swap   Amount of swap in use
594
595
596        swapmax
597               Total amount of swap
598
599
600        swapperc
601               Percentage of swap in use
602
603
604        sysname
605               System name, Linux for example
606
607
608        offset (pixels)
609               Move text over by N pixels. See also $voffset.
610
611
612        tail   logfile, lines interval> Displays last N lines of supplied  text
613               text file. If interval is not supplied, Conky assumes 2x Conky's
614               interval. Max of 30 lines. Max of 30 lines can be displayed.
615
616
617        time (format)
618               Local time, see man strftime to get more information about  for-
619               mat
620
621
622        totaldown net
623               Total  download, overflows at 4 GB on Linux with 32-bit arch and
624               there doesn't seem to be a way to know how  many  times  it  has
625               already done that before conky has started.
626
627
628        top type, num
629               This  takes arguments in the form:top (name) (number) Basically,
630               processes are ranked from highest to  lowest  in  terms  of  cpu
631               usage,  which  is  what (num) represents. The types are: "name",
632               "pid", "cpu", and mem". There can  be  a  max  of  10  processes
633               listed.
634
635
636        top_mem type, num
637               Same as top, except sorted by mem usage instead of cpu
638
639
640        totalup net
641               Total upload, this one too, may overflow
642
643
644        updates Number of updates
645               for debugging
646
647
648        upspeed net
649               Upload speed in kilobytes
650
651
652        upspeedf net
653               Upload speed in kilobytes with one decimal
654
655
656        upspeedgraph net, (height),(width) (gradient colour 1) (gradient colour
657        2)
658               Upload speed graph, colours defined in hex, minus the #.
659
660
661        uptime Uptime
662
663
664        uptime_short
665               Uptime in a shorter format
666
667
668        seti_prog
669               Seti@home current progress
670
671
672        seti_progbar (height),(width)
673               Seti@home current progress bar
674
675
676        seti_credit
677               Seti@home total user credit
678
679
680        voffset (pixels)
681               Change  verticle  offset by N pixels. Negative values will cause
682               text to overlap. See also $offset.
683
684
685 EXAMPLES
686        conky -t '${time %D %H:%m}' -o -u 30
687               Start Conky in its own window with date and clock as text and 30
688               sec update interval.
689
690        conky -a top_left -x 5 -y 500 -d
691               Start Conky to background at coordinates (5, 500).
692
693 FILES
694        ~/.conkyrc default configuration file
695
696 BUGS
697        Drawing to root or some other desktop window directly doesn't work with
698        all window managers. Especially doesn't work well with Gnome and it has
699        been  reported  that  it  doesn't work with KDE either. Nautilus can be
700        disabled from drawing to desktop  with  program  gconf-editor.  Uncheck
701        show_desktop  in  /apps/nautilus/preferences/.  There  is  -w switch in
702        Conky to set some specific window id. You  might  find  xwininfo  -tree
703        useful  to  find  the  window  to draw to. You can also use -o argument
704        which makes Conky to create its own window.
705
706 SEE ALSO
707        http://conky.sourceforge.net [http://conky.sourceforge.net]
708
709        http://www.sourceforge.net/projects/conky           [http://www.source-
710        forge.net/projects/conky]
711
712        #conky on irc.freenode.net
713
714 AUTHORS
715        The Conky dev team. What's up now??!
716
717
718
719                                   2005-08-18                          conky(1)