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