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