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