Can someone tell me why my weather info isn't lined up with the rest of the conky info?
Code:# UBUNTU-CONKY # A comprehensive conky script, configured for use on # Ubuntu / Debian Gnome, without the need for any external scripts. # # Based on conky-jc and the default .conkyrc. # INCLUDES: # - tail of /var/log/messages # - netstat connections to your computer # # -- Pengo (conky@pengo.us) # # Create own window instead of using desktop (required in nautilus) own_window yes own_window_hints undecorated,below,skip_taskbar background no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # fiddle with window use_spacer yes use_xft yes # Update interval in seconds update_interval 1.5 # Minimum size of text area minimum_size 400 5 # Draw shades? draw_shades yes # Text stuff draw_outline no # amplifies text if yes draw_borders no uppercase no # set to yes if you want all text to be in uppercase # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors, grey90 == #e5e5e5 default_color white default_shade_color black default_outline_color white own_window_colour brown own_window_transparent yes # Text alignment, other possible values are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text gap_x 10 gap_y 10 # stuff after 'TEXT' will be formatted on screen override_utf8_locale no xftfont Terminus:size=7.5 xftalpha 0.8 TEXT ${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G} ${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S} ${offset 240}${color slate grey}UpTime: ${color }$uptime ${offset 240}${color slate grey}Kern:${color }$kernel ${offset 240}${color slate grey}Power: ${color}${battery} ${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}F ${offset 240}${cpugraph 20,130 000000 ffffff} ${offset 240}${color slate grey}Load: ${color }$loadavg ${offset 240}${color slate grey}Processes: ${color }$processes ${offset 240}${color slate grey}Running: ${color }$running_processes ${offset 240}${color slate grey}Highest CPU: ${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1} ${offset 240}${color lightgrey} ${top name 2}${top cpu 2} ${offset 240}${color lightgrey} ${top name 3}${top cpu 3} ${offset 240}${color lightgrey} ${top name 4}${top cpu 4} ${offset 240}${color slate grey}Highest MEM: ${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1} ${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2} ${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3} ${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4} ${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax ${offset 240}${membar 3,100} ${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax ${offset 240}${swapbar 3,100} ${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /} ${offset 240}${fs_bar 3,100 /} ${offset 240}${color slate grey}MEDIA: ${color }${fs_free /media/sda5}/${fs_size /media/sda5} ${offset 240}${fs_bar 3,100 /media/sda5} ${offset 240}${color slate grey}XP: ${color }${fs_free /media/sda1}/${fs_size /media/sda1} ${offset 240}${fs_bar 3,100 /media/sda1} ${offset 240}${color slate grey}NET: ${offset 240}${color}Up: ${color }${upspeed eth1} k/s ${offset 240}${upspeedgraph eth1 20,130 000000 ffffff} ${offset 240}${color}Down: ${color }${downspeed eth1}k/s${color} ${offset 240}${downspeedgraph eth1 20,130 000000 ffffff} ${offset 240{${color #FF0000}Dublin Forecast: $alignc${execi 80 ~/scripts/weather.sh 31021} ${offset 240}${color slate grey}Wireless: ${color} ${linkstatus eth1}% Signal Strength ${offset 240}${color slate grey}IP: ${color} ${addr eth1}
(current sig) Getting better. I'm using Ubuntu exclusively at home...
(old sig)Total Newb Here... At least I'm honest.
Thats right, im working with dapper. Actually i couldnt get transparency work all right at first. Luckily it all worked when i updated xfce to version 4.4, Check conky settings in the attached file.
And dont mind asking if i can help you with my little knowlege!
Good Luck!
Advantages and Disadvantages of 64bit.(Plus install Guides)
‘In search of some small measure of peace, that we all seek, and few of us ever find.’
The offset and allignc commands are screwing it up. I'm not sure you can fix this with the way you are using offset. When alignrc kicks in, it centers the text across the entire conky window,
I'd recommend using the maximum_width command to size the window to the correct proportions to begin with. It looks like this:Code:${offset 240{${color #FF0000}Dublin Forecast: $alignc${execi 80 ~/scripts/weather.sh 31021}
You should tweak the 350 to a width of your liking.Code:# Minimum size of text area minimum_size 400 5 maximum_width 350
If you're not part of the solution, you're part of the precipitate.
I'm Steve and I'm a super-villain.
EDIT: Rearranged it so that Amarok display and Gmail are on bottom left now, feels and looks much cleaner.
.conkyrc
.conkyrc-amarokCode:double_buffer yes update_interval 2.5.0 background yes own_window yes own_window_transparent yes own_window_type override #own_window_type root own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager use_xft yes override_utf8_locale no xftfont Dejavu Sans:size=9 xftalpha 0.8 draw_shades no draw_outline no draw_borders no uppercase no use_spacer no border_margin 0 border_width 0 default_color white default_outline_color black alignment top_left gap_x 1650 gap_y 0 #Amarok beside gmail not needed now #${color #ffffff}${alignc}Now Playing - ${color #d27c00} "${execi 10 ~/.conky/amarok title}"${color #ffffff} by ${color #d27c00}${execi 10 ~/.conky/amarok artist} ${color #ffffff}from ${color #d27c00}${execi 10 ~/.conky/amarok album}${color #ffffff} released in ${color #d27c00}${execi 10 ~/.conky/amarok year} ${color #ffffff} #${color #ffc066}${execibar 1 ~/.conky/amarok progress} TEXT ${alignc}${font Zekton:bold:size=16}${color #ffffff}Pentium IV EE @ ${freq} MHz | ${color #ffffff}CPU ${color #d27c00} ${cpu}% ${color #ffffff} | RAM ${color #d27c00} ${memperc}% ${color #ffffff}| Down ${color #d27c00} ${downspeed eth0} Kb/s ${color #ffffff} | Up ${color #d27c00} ${upspeed eth0}Kb/s ${color #ffffff} | ${font Zekton:bold:size=16} ${color #d27c00}.:[ ${color #ffffff}${time %a %b %e} | ${color #fbaf43}${font Zekton:bold:size=16}${time %r} ${font Zekton:bold:size=16}${color #d27c00} ]:. ${alignc}${font Zekton:bold:size=16}$nodename ${color #ffffff}on ${color #d27c00}$sysname $kernel ${color #ffffff}on ${color #d27c00}$machine ${color #ffffff} | Network ${color #d27c00}${addr eth0} ${color #ffffff}| Uptime: ${color #d27c00} $uptime ${color #ffffff} | Load: ${color #d27c00} $loadavg ${color #888888}${hr 3} ${alignc}${font Zekton:size=13}${color #ffffff}FiLE SYSTEMS: ${color #ffffff}/ ${color #d27c00}${fs_free /}/${fs_size /} ${color #ffc066}${fs_bar 8,175 /} ${color #ffffff} extra ${color #d27c00}${fs_free /media/extra/}/${fs_size /media/extra/} ${color #ffc066}${fs_bar 8,175 /media/extra/} ${color #ffffff} xp ${color #d27c00}${fs_free /media/BGPC VISTA/}/${fs_size /media/BGPC VISTA/} ${color #ffc066}${fs_bar 8,175 /media/BGPC VISTA/} ${color #ffffff} mystuff ${color #d27c00}${fs_free /media/mystuff}/${fs_size /media/mystuff} ${color #ffc066}${fs_bar 8,175 /media/mystuff}
A couple things if someone can help out:Code:double_buffer yes update_interval 1.0 background yes own_window yes own_window_transparent yes own_window_type override #own_window_type root own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager use_xft yes override_utf8_locale no xftfont Dejavu Sans:size=9 xftalpha 0.8 draw_shades no draw_outline no draw_borders no uppercase no use_spacer no border_margin 9 border_width 0 default_color white default_outline_color black alignment bottom_left gap_x 0 gap_y 32 TEXT ${font Zekton:bold:size=13}${color #d27c00}.:[ ${color #ffffff}Gmail - ${color #ffc066}${texeci 90 python /home/bobby/.conky/gmail.py}${color #d27c00} ]:. ${color #888888}----------------------------------------${color #636262}---${color #414141}---${color #000000}--- ${color #ffffff}${alignc}${font Zekton:bold:size=13}Now Playing - ${color #d27c00} "${execi 10 ~/.conky/amarok title}"${color #ffffff} by ${color #d27c00}${execi 10 ~/.conky/amarok artist} ${color #ffffff}from ${color #d27c00}${execi 10 ~/.conky/amarok album}${color #ffffff} released in ${color #d27c00}${execi 10 ~/.conky/amarok year} ${color #888888}${execibar 1 ~/.conky/amarok progress}
1. Anyone in Canada have a weather script? Every one I see is for folks in the US or overseas, can't find one that has Canada weather working :/
2. I can't get my conky to get the CPU and MB temps. I have copied some of the temp commands from scripts in this thread but they just don't work. I have tried:
Which prevents conky from even starting lol, andCode:[*]${i2c temp 1}
Returns only a "0" value, never working.Code:[*]${acpitemp}
I have lm-sensors installed, etc. as you can see from my desktop SS on the top left I have been seeing my temps for the longest time just fine. Would really like conky to take those duties over though
TIA for any help!
Last edited by herbster; June 14th, 2007 at 09:45 PM.
"For those who believe, no explanation is necessary. For those who do not, none will suffice." - Joseph Dunninger
Hi herbster !
I dont know much about all this, but i can tell the following:
- To get weather information for your location in Canada, you will have to modify some parameter of the script you are going to use. So find a script that works OK for you and find out where does it get information from.
- Showing HW temperatures in conky is not an easy thing to get into work. Find out if your motherboard provides that information, but before that -> search the forums, many people have managed to get it and are sharing their experience!
Good Luck with it!
Here's mine.
Original concept borrowed from kmandla's conky, with some amendments inspired by screens on this thread.
For some reason however conky won't sticky to all of my desktops. Is this normal behaviour. Perhaps I need to add something to my rc.
It lives on the bottom left of my screen btw.
Last edited by merlyn; June 15th, 2007 at 01:03 PM.
"I'm just sittin' here watchin' the wheels go 'round and 'round"
John Lennon
Bookmarks