Thanks, that worked great!Originally Posted by jtan325
Thanks, that worked great!Originally Posted by jtan325
Nope, me too. I'm using the conky from the breezy repo's and it took me a while to figure out that it was acpitemp causing the problem. My temperature shows up in /proc/acpi/thermal_zone/THRM/temperature - maybe that has something to do with it?Originally Posted by gbm31
Quick question. What should I put in the config to make it show the contents of a file?
Hy.
i'm running conky 1.3.4 and i'm having some problems.
first how to set a bar ou % of volume?
and i saw one user showing % of signal from WLAN, how to do that?
cheers.
and by the way, i can't get it to stay near the edge of my screen. :\
I found people interested in my configuration file from Gallery section where I post my last screenshot..therefore I'm going to share it here. It took some time to make use all conky variables correctly in the desire way. Meanwhile I change some ports so I reconfigure conky for them as well.
Conky's thread from Gentoo forum helped me a lot, actually.
I'll skip comment lines, you may find them easyly in any conkyrc sample from the source program.(hope I won't omit the real line by mistake)
You may remove /hdb* lines, containing mounted partion devices of my system and change them with yours given by fstab file (or whatever mount point device want to be shown by conky).Code:background yes cpu_avg_samples 2 net_avg_samples 2 out_to_console no use_xft yes xftfont Bitstream Vera Sans Mono:size=9 own_window_transparent yes xftalpha 0.8 on_bottom yes mail_spool $MAIL update_interval 1 own_window yes double_buffer yes draw_shades no draw_outline no draw_borders no stippled_borders 0 border_margin 4 border_width 1 default_color white default_shade_color white default_outline_color white alignment top_right gap_x 10 gap_y 25 use_spacer no no_buffers no uppercase no TEXT $sysname $kernel ${time %A,%d %B} $stippled_hr ${color lightgrey}Time:$color ${time %k:%M:%S} ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg ${color lightgrey}CPU1 Usage:${color} ${cpu cpu1}% ${cpubar cpu1} ${color lightgrey}CPU2 Usage:${color} ${cpu cpu2}% ${cpubar cpu2} ${color #4F6B93}${cpugraph 25 8098ff ffc7ea} ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes $color$stippled_hr ${color lightgrey}Networking: ${offset 10}Down:${color #a9c7ea} ${downspeed eth1} k/s${color lightgrey} ${alignr}Up:${color #a9c7ea} ${upspeed eth1} k/s ${offset 10}${color #4F6B93}${downspeedgraph eth1 25,100 8098ff ffc7ea} ${alignr}${color #4F6B93}${upspeedgraph eth1 25,100 8098ff ffc7ea} ${offset 10}${color lightgrey}Total: ${color #a9c7ea}${totaldown eth1} ${alignr}${color lightgrey}Total: ${color #a9c7ea}${totalup eth1} ${color lightgrey}File systems:$alignr / $color${fs_used_perc /}% ${fs_used /}/${fs_size /} ${fs_bar /} /hdb11 $color${fs_used_perc /media/hdb11}% ${fs_used /media/hdb11}/${fs_size /media/hdb11} ${fs_bar /media/hdb11} /hdb9 $color${fs_used_perc /media/hdb9}% ${fs_used /media/hdb9}/${fs_size /media/hdb9} ${fs_bar /media/hdb9} /hdb8 $color${fs_used_perc /media/hdb8}% ${fs_used /media/hdb8}/${fs_size /media/hdb8} ${fs_bar /media/hdb8} /sda6 $color${fs_used_perc /media/sda6}% ${fs_used /media/sda6}/${fs_size /media/sda6} ${fs_bar /media/sda6} ${color}Name PID CPU% MEM% ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color}Mem usage ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} ${font Verdana:style=Bold:pixelsize=12}${color #9AB7FF} ${alignc}$mpd_artist - $mpd_title ${font Verdana:style=Bold:pixelsize=12}${color #9AB7FF} ${alignc}vol: $mpd_vol bitrate: $mpd_bitrate kbp length: $mpd_length $mpd_percent% ${color #9AB7FF}$mpd_bar ${color #9AB7FF}${alignc}$mpd_status ${color lightgrey}${execi 1 ~/Documents/conky/get_calendar.sh first_part}${color #ddaa00}${execi 1 ~/Documents/conky/get_calendar.sh today }${color }${execi 1 ~/Documents/conky/get_calendar.sh second_part} ${color lightgrey}Port(s)${offset 48}Connections: ${color lightgrey} ALL: ${alignc}${tcp_portmon 1 65535 count} ${color lightgrey} mpd:${alignc}${tcp_portmon 6600 6600 count} ${color lightgrey} 1 - 1024:${alignc}${tcp_portmon 1 1024 count} ${color lightgrey} 1025 - 65535:${alignc}${tcp_portmon 1024 65535 count} ${color lightgrey}Remote Address:${alignr} Local Service/Port: ${color}${tcp_portmon 1 1024 rport 0} ${color}${tcp_portmon 1 65535 rhost 0}${alignr}${tcp_portmon 1 65535 lservice 0} ${color}${tcp_portmon 1 65535 rhost 1}${alignr}${tcp_portmon 1 65535 lservice 1} ${color}${tcp_portmon 1 65535 rhost 2}${alignr}${tcp_portmon 1 65535 lservice 2} ${color}${tcp_portmon 1 65535 rhost 3}${alignr}${tcp_portmon 1 65535 lservice 3} ${color}${tcp_portmon 1 65535 rhost 4}${alignr}${tcp_portmon 1 65535 lservice 4} ${color}${tcp_portmon 1 65535 rhost 5}${alignr}${tcp_portmon 1 65535 lservice 5}
The calendar script noticed in my path "~/Documente/conky/get_calendar.sh" wasn't my creation I just copied from Gentoo thread mentioned above you may find there or I'll posted here:
All you should do just name it in the way you want and change the path where you place it, in .conkyrc file.Code:#! /bin/sh #str=`echo '\033[01;32m29'` DATE=`date | awk -F" " '{print $3}'` case "$1" in first_part) cal | grep '[a-zA-Z]'; cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0} ($1 == $0 && i==0) {print $1} ($1 != $0 && i==0){i=i+1;print $1}'; ;; today) echo $DATE; ;; second_part) cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1} (i==0) {print $0} ($1 != $0 && i==1){i=i-1;print $2} '; ;; esac
Note that I've got a smp HT CPU which runs the second CPU:CPU1, CPU2, this setting in conky is available for dual core type as well.
For a normal CPU if don't mistaken the setting is CPU0.. you should check with conky sample.
Sometimes I run another setting file called .conky-next were I place the calender for the next month...it took a little time to figure out exactly the geometry of it to be in the same line with previous conky loaded.
Another trick that again I found it on mentioned forum was to run my wallpaper background on a virtual root window to achive conky' s transparency in KDE, otherwise my background would be black no matter of conky settings. So I dropped a line in ~/.kde/Autostart/whatevernamed file as:Code:background yes cpu_avg_samples 2 net_avg_samples 2 out_to_console no use_xft yes xftfont Bitstream Vera Sans Mono:size=9 own_window_transparent yes xftalpha 0.8 on_bottom yes update_interval 1 own_window yes double_buffer no draw_shades no draw_outline no draw_borders no stippled_borders 0 border_margin 4 border_width 1 default_color white default_shade_color white default_outline_color white alignment top_right gap_x 10 gap_y 582 objects. use_spacer no no_buffers no uppercase no TEXT ${color lightgrey}${exec cal $(date +'%b %Y' --date '1 month')}
#! /bin/bash
display -size 1280x1024 -window root /your/path/to/your/wallpaper.jpg
above you may choose your resolution as well. This trick is unnecessary in Gnome desktop.
This is something that you should see on your desktop...
http://ubuntuforums.org/gallery/showimage.php?i=1436
I think that's all I can share now...enjoy!
Last edited by limit223; December 15th, 2005 at 08:01 PM.
...optimize, clarify, open, Share....knowledge.
Is it possible to get conky to graph another conky variable such as memory usage, without making a script to return it. i.e something along the lines of;
${execgraph $memperc ...}
Without having to make a bash scrip to return it something like top -n 1 and then messing about to get the memory use out of it and then converting it to a percentage;
.well..I tried once exec conky in conky ...but the cpu consume went up like crazy....and I didn't have really the right output...
...optimize, clarify, open, Share....knowledge.
using conky 1.3.1 since installed breez, and LOVIN it! I don't know what I would do without it!!! Here is my conky screenshot with my .conkyrc for anyone who might be interested:
Code:# Conky sample configuration # # the list of variables has been removed from this file in favour # of keeping the documentation more maintainable. # Check http://conky.sf.net for an up-to-date-list. # set to yes if you want Conky to be forked in the background background yes # X font when Xft is disabled, you can pick one with program xfontsel #font 5x7 font 6x10 #font 7x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft yes # Set conky on the bottom of all other applications on_bottom yes # Xft font when Xft is enabled xftfont Bitstream Vera Sans Mono:size=8 # Text alpha when using Xft xftalpha 0.8 # Print everything to stdout? # out_to_console no # MPD host/port # mpd_host localhost # mpd_port 6600 # mpd_password tinker_bell # Print everything to console? # out_to_console no # mail spool mail_spool $MAIL # Update interval in seconds update_interval 1.0 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes # Use pseudo transparency with own_window? own_window_transparent yes # If own_window_transparent is set to no, you can set the background colour hereown_window_colour grey # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 280 5 # Draw shades? draw_shades yes # Draw outlines? draw_outline yes # Draw borders around text draw_borders yes # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color white default_shade_color white default_outline_color black # Text alignment, other possible values are commented #alignment top_left #alignment top_right #alignment bottom_left alignment bottom_right #alignment none # Gap between borders of screen and text # same thing as passing -x at command line gap_x 6 gap_y 30 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase yes # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 2 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale no # Add spaces to keep things from moving about? This only affects certain objects. use_spacer no # mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost # mldonkey_port Mldonkey port, 4001 default # mldonkey_login Mldonkey login, default none # mldonkey_password Mldonkey password, default none # boinc (seti) dir # seti_dir /opt/seti # variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen TEXT $alignc =CONKY= $alignc $nodename - $sysname $kernel on $machine $alignc Uptime:${color lightgrey} $uptime $color - Load:${color lightgrey} 1m-$color${loadavg 1}${color lightgrey} 5m-$color${loadavg 2}${color lightgrey} 15m-$color${loadavg 3}$color $stippled_hr ${color lightgrey}HDD I/O:$color $diskio ${color red}${diskiograph 0000ff 00ff00} ${color lightgrey}CPU Usage:$color $cpu% ${color #cc2222} ${cpubar} ${color red}${cpugraph 0000ff 00ff00} ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar} ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes $color$stippled_hr ${color lightgrey}Networking:$color PPP0 ${color lightgrey} on $color ${addr ppp0} ${color lightgrey} Down:${color #8844ee} ${downspeedf ppp0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeedf ppp0} k/s ${color #0000ff}${downspeedgraph ppp0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph ppp0 32,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}Networking:$color WLAN0 ${color lightgrey} on $color ${addr wlan0} ${color lightgrey}Link Status:$color ${linkstatus wlan0} ${color lightgrey}Down:${color #8844ee} ${downspeed wlan0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed wlan0} k/s ${color #0000ff}${downspeedgraph wlan0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph wlan0 32,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}Networking:$color ETH0 ${color lightgrey} on $color ${addr eth0} ${color lightgrey}Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s ${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}File systems: / $color${fs_used /}/${fs_size /} ${fs_bar /} /home $color${fs_used /home}/${fs_size /home} ${fs_bar /home} /fat32 $color${fs_used /fat32}/${fs_size /fat32} ${fs_bar /fat32} $color$stippled_hr CPU ${tail /proc/acpi/thermal_zone/THRM/temperature 1 30} $color$stippled_hr ${color lightgrey}Name CPU% MEM% PID ${color #ff4500} ${top name 1} ${top cpu 1} ${top mem 1} ${top pid 1} ${color #eeee00} ${top name 2} ${top cpu 2} ${top mem 2} ${top pid 2} ${color #00ee00} ${top name 3} ${top cpu 3} ${top mem 3} ${top pid 3} ${color} ${top name 4} ${top cpu 4} ${top mem 4} ${top pid 4} ${color} ${top name 5} ${top cpu 5} ${top mem 5} ${top pid 5} ${color} ${top name 6} ${top cpu 6} ${top mem 6} ${top pid 6} ${color} ${top name 7} ${top cpu 7} ${top mem 7} ${top pid 7} ${color} ${top name 8} ${top cpu 8} ${top mem 8} ${top pid 8} ${color} ${top name 9} ${top cpu 9} ${top mem 9} ${top pid 9}
Last edited by towsonu2003; December 16th, 2005 at 08:17 AM.
Wanna adopt your next dog, cat, or rabbit?
Vote for winmodems to be supported in the next release of Ubuntu! | DialUp Modem HowTo for Ubuntu
(my # of posts) ≠ (my level of linux experience)
is there any way to get conky to not blink every time it updates? it gets really annoying...
In .conkyrcOriginally Posted by Chris Tucker
and in /etc/X11/xorg.confCode:double_buffer yes
Code:Section "Module" Load "dbe"
...optimize, clarify, open, Share....knowledge.
Bookmarks