docs
[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        minimum_size
201               Minimum size of window
202
203
204        mldonkey_hostname
205               Hostname for mldonkey stuff, defaults to localhost
206
207
208        mldonkey_port
209               Mldonkey port, 4001 default
210
211
212        mldonkey_login
213               Mldonkey login, default none
214
215
216        mldonkey_password
217               Mldonkey password, default none
218
219
220        mpd_host
221               Host of MPD server
222
223
224        mpd_post
225               Port of MPD server
226
227
228        mpd_password
229               MPD server password
230
231
232        net_avg_samples
233               The number of samples to average for net data
234
235
236        override_utf8_locale
237               Force UTF8? requires XFT
238
239
240        own_window
241               Boolean, create own window to draw?
242
243
244        pad_percents
245               Pad percentages to this many decimals (0 = no padding)
246
247
248        stippled_borders
249               Border stippling (dashing) in pixels
250
251
252        total_run_times
253               Total  number of times for Conky to update before quitting. Zero
254               makes Conky run forever
255
256
257        update_interval
258               Update interval in seconds
259
260
261        uppercase
262               Boolean value, if true, text is rendered in upper case
263
264
265        use_spacer
266               Adds spaces after certain objects to stop them from moving other
267               things around. Note that this only helps if you are using a mono
268               font, such as Bitstream Vera Sans Mono.
269
270
271        use_xft
272               Use Xft (anti-aliased font and stuff)
273
274
275        text   After this begins text to be formatted on screen
276
277
278 VARIABLES
279        Colors are parsed using XParsecolor(), there might be a list  of  them:
280        /usr/X11R6/lib/X11/rgb.txt.   Also,   http://sedition.com/perl/rgb.html
281        [http://sedition.com/perl/rgb.html] Color can be also in #rrggbb format
282        (hex).   Note that when displaying bytes, power is 1024 and not 1000 so
283        1M really means 1024*1024 bytes and not 1000*1000.
284
285        addr (interface)
286               IP address for an interface
287
288
289        acpiacadapter
290               ACPI ac adapter state.
291
292
293        acpifan
294               ACPI fan state
295
296
297        acpitemp
298               ACPI temperature in C.
299
300
301        acpitempf
302               ACPI temperature in F.
303
304
305        adt746xcpu
306               CPU temperature from therm_adt746x
307
308
309        adt746xfan
310               Fan speed from therm_adt746x
311
312
313        alignr (num)
314               Right-justify text, with space of N
315
316
317        alignc (num)
318               Align text to centre
319
320
321        battery (num)
322               Remaining capacity in ACPI or APM battery. ACPI  battery  number
323               can be given as argument (default is BAT0).
324
325
326        buffers
327               Amount of memory buffered
328
329
330        cached Amount of memory cached
331
332
333        color (color)
334               Change drawing color to color
335
336
337        cpu    CPU usage in percents
338
339
340        cpubar (height),(width)
341               Bar that shows CPU usage, height is bar's height in pixels
342
343
344        cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
345               CPU usage graph, with optional colours in hex, minus the #.
346
347
348        downspeed net
349               Download speed in kilobytes
350
351
352        downspeedf net
353               Download speed in kilobytes with one decimal
354
355
356        downspeedgraph  net,  (height),(width)  (gradient  colour  1) (gradient
357        colour 2)
358               Download speed graph, colours defined in hex, minus the #.
359
360
361        else   Text to show if any of the above are not true
362
363
364        exec shell command
365               Executes a shell command and displays the output in conky. warn-
366               ing: this takes a lot more resources than other  variables.  I'd
367               recommend coding wanted behaviour in C and posting a patch.
368
369
370        execbar shell command
371               Same  as  exec,  except  if  the  first  value return is a value
372               between 0-100, it will use that number for a bar. The  size  for
373               the bar is currently fixed, but that may change in the future.
374
375
376        execgraph shell command
377               Same as execbar, but graphs values
378
379
380        execi interval, shell command
381               Same  as exec but with specific interval. Interval can't be less
382               than update_interval in configuration.
383
384
385        font font
386               Specify a different font. Only applies to one line.
387
388
389        freq   Returns CPU frequency in MHz
390
391
392        freq_g Returns CPU frequency in GHz
393
394
395        fs_bar (height),(width) fs
396               Bar that shows how much space is used on a file  system.  height
397               is the height in pixels. fs is any file on that file system.
398
399
400        fs_free (fs)
401               Free space on a file system available for users.
402
403
404        fs_free_perc (fs)
405               Free percentage of space on a file system available for users.
406
407
408        fs_size (fs)
409               File system size
410
411
412        fs_used (fs)
413               File system used space
414
415
416        hr (height)
417               Horizontal line, height is the height in pixels
418
419
420        i2c (dev), type, n
421               I2C  sensor  from  sysfs  (Linux 2.6). dev may be omitted if you
422               have only one I2C device. type is either  in  (or  vol)  meaning
423               voltage, fan meaning fan or temp/tempf (first in C, second in F)
424               meaning  temperature.  n  is   number   of   the   sensor.   See
425               /sys/bus/i2c/devices/ on your local computer.
426
427
428        if_running (process)
429               if  PROCESS  is  running,  display everything if_running and the
430               matching $endif
431
432
433        if_existing (file)
434               if FILE exists, display everything between if_existing  and  the
435               matching $endif
436
437
438        if_mounted (mountpoint)
439               if  MOUNTPOINT is mounted, display everything between if_mounted
440               and the matching $endif
441
442
443        kernel Kernel version
444
445
446        linkstatus (interface)
447               Get the link status for wireless connections
448
449
450        loadavg
451               (1,2,3)> System load average, 1 is for past 1 minute, 2 for past
452               5 minutes and 3 for past 15 minutes.
453
454
455        machine
456               Machine, i686 for example
457
458
459        mails  Mail  count in mail spool. You can use program like fetchmail to
460               get mails from some server using your  favourite  protocol.  See
461               also new_mails.
462
463
464        mem    Amount of memory in use
465
466
467        membar (height),(width)
468               Bar that shows amount of memory in use
469
470
471        memmax Total amount of memory
472
473
474        memperc
475               Percentage of memory in use
476
477
478        ml_upload_counter
479               total session upload in mb
480
481
482        ml_download_counter
483               total session download in mb
484
485
486        ml_nshared_files
487               number of shared files
488
489
490        ml_shared_counter
491               total session shared in mb, buggy in some mldonkey versions
492
493
494        ml_tcp_upload_rate
495               tcp upload rate in kb/s
496
497
498        ml_tcp_download_rate
499               tcp download rate in kb/s
500
501
502        ml_udp_upload_rate
503               udp upload rate in kb/s
504
505
506        ml_udp_download_rate
507               udp download rate in kb/s
508
509
510        ml_ndownloaded_files
511               number of completed files
512
513
514        ml_ndownloading_files
515               number of downloading files
516
517
518        mpd_artist
519               Artist in current MPD song must be enabled at compile
520
521
522        mpd_album
523               Album in current MPD song
524
525
526        mpd_bar (height),(width)
527               Bar of mpd's progress
528
529
530        mpd_bitrate
531               Bitrate of current song
532
533
534        mpd_status
535               Playing, stopped, et cetera.
536
537
538        mpd_title
539               Title of current MPD song
540
541
542        mpd_vol
543               MPD's volume
544
545
546        mpd_elapsed
547               Song's elapsed time
548
549
550        mpd_length
551               Song's length
552
553
554        mpd_percent
555               Percent of song's progress
556
557
558        new_mails
559               Unread mail count in mail spool.
560
561
562        nodename
563               Hostname
564
565
566        outlinecolor (color)
567               Change outline color
568
569
570        pre_exec shell command
571               Executes a shell command one time before conky displays anything
572               and puts output as text.
573
574
575        processes
576               Total processes (sleeping and running)
577
578
579        running_processes
580               Running processes (not sleeping), requires Linux 2.6
581
582
583        shadecolor (color)
584               Change shading color
585
586
587        stippled_hr (space)
588               Stippled (dashed) horizontal line
589
590
591        swapbar (height),(width)
592               Bar that shows amount of swap in use
593
594
595        swap   Amount of swap in use
596
597
598        swapmax
599               Total amount of swap
600
601
602        swapperc
603               Percentage of swap in use
604
605
606        sysname
607               System name, Linux for example
608
609
610        offset (pixels)
611               Move text over by N pixels. See also $voffset.
612
613
614        tail   logfile, lines interval> Displays last N lines of supplied  text
615               text file. If interval is not supplied, Conky assumes 2x Conky's
616               interval. Max of 30 lines. Max of 30 lines can be displayed.
617
618
619        time (format)
620               Local time, see man strftime to get more information about  for-
621               mat
622
623
624        totaldown net
625               Total  download, overflows at 4 GB on Linux with 32-bit arch and
626               there doesn't seem to be a way to know how  many  times  it  has
627               already done that before conky has started.
628
629
630        top type, num
631               This  takes arguments in the form:top (name) (number) Basically,
632               processes are ranked from highest to  lowest  in  terms  of  cpu
633               usage,  which  is  what (num) represents. The types are: "name",
634               "pid", "cpu", and mem". There can  be  a  max  of  10  processes
635               listed.
636
637
638        top_mem type, num
639               Same as top, except sorted by mem usage instead of cpu
640
641
642        totalup net
643               Total upload, this one too, may overflow
644
645
646        updates Number of updates
647               for debugging
648
649
650        upspeed net
651               Upload speed in kilobytes
652
653
654        upspeedf net
655               Upload speed in kilobytes with one decimal
656
657
658        upspeedgraph net, (height),(width) (gradient colour 1) (gradient colour
659        2)
660               Upload speed graph, colours defined in hex, minus the #.
661
662
663        uptime Uptime
664
665
666        uptime_short
667               Uptime in a shorter format
668
669
670        seti_prog
671               Seti@home current progress
672
673
674        seti_progbar (height),(width)
675               Seti@home current progress bar
676
677
678        seti_credit
679               Seti@home total user credit
680
681
682        voffset (pixels)
683               Change  verticle  offset by N pixels. Negative values will cause
684               text to overlap. See also $offset.
685
686
687 EXAMPLES
688        conky -t '${time %D %H:%m}' -o -u 30
689               Start Conky in its own window with date and clock as text and 30
690               sec update interval.
691
692        conky -a top_left -x 5 -y 500 -d
693               Start Conky to background at coordinates (5, 500).
694
695 FILES
696        ~/.conkyrc default configuration file
697
698 BUGS
699        Drawing to root or some other desktop window directly doesn't work with
700        all window managers. Especially doesn't work well with Gnome and it has
701        been  reported  that  it  doesn't work with KDE either. Nautilus can be
702        disabled from drawing to desktop  with  program  gconf-editor.  Uncheck
703        show_desktop  in  /apps/nautilus/preferences/.  There  is  -w switch in
704        Conky to set some specific window id. You  might  find  xwininfo  -tree
705        useful  to  find  the  window  to draw to. You can also use -o argument
706        which makes Conky to create its own window.
707
708 SEE ALSO
709        http://conky.sourceforge.net [http://conky.sourceforge.net]
710
711        http://www.sourceforge.net/projects/conky           [http://www.source-
712        forge.net/projects/conky]
713
714        #conky on irc.freenode.net
715
716 AUTHORS
717        The Conky dev team. What's up now??!
718
719
720
721                                   2005-08-18                          conky(1)