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