:popcorn: and I spent hours on other stuff. :D
Printable View
@ Sector11 & GrouchyGaijin,
Thanks a bunch, I got that one troublesome IMAP email to work finally and one of my POP3 accounts using conkyEmail. But now the other POP3 account always returns 4 unread mails (go figure).
I logged on to the web site and checked that account, there are no unread mails, I'm not sure what's going on. I even had it display which emails were new, and they were all indeed read.
If I can't get conkyEmail to work for that one account, I'll just check it by grep counting the Thunderbird inbox file, which worked before.
Update:
I figured out a fix (of sorts). I had to set Thunderbird to delete messages from the server once it downloaded the email. This allows conkyEmail to work correctly as long as Thunderbird is not running. If, however Thunderbird is running, the message will downloaded off the server and conkyEmail will return 0. So, I will just now keep Thunderbird from running in the background until I find a better fix. I really shouldn't need it running now that I have my Conky showing me if I have emails anyway.
This is my latest Tint2 and Conky setups. I like the simplistic Conky across the top that is the default with VSIDO. I made a couple of little changes. Email top right, and a v9000 forecast covers all the bases.
http://www.zimagez.com/miniature/liquorixmemob.png
Ok just changed it to this;
I've got the variables wrong in the weather script, but I'll have that fixed in a few. @Sector11, thanks for giving me the idea!!! Conky with weather (Thanks Teo), and email...
http://www.zimagez.com/miniature/jedvsidorc0.jpg
After all the messing around with Conky to get my emails to properly appear, I found out this morning that Thunderbird has an unread email indicator add-in for Docky. So I'm not sure if I'll keep the email output in my Conky. I ended up only using the conkyEmail function for my IMAP account and had to do the grep counting for the POP3 accounts.
The weather docklet for Docky does not appear to work, and the other dock programs (which have working weather indicators) don't get along with my dual monitor set up too well. So I may end up starting on a Conky weather display in the near future.
Oh well; accomplished little, but learned a lot this weekend.
OK, so I finally did it!!! This is my version of the VSIDO default horizontal Conky. I've added some stuff, got rid of some more stuff, added some weather, and conkyEmail. The weather is courtesy of Teo's hard work and fantastic weather scripts!!! Thanks also to Sector11 for the original idea...
http://en.zimagez.com/miniature/hzvsidoconky0.jpg
Is it this cold every-where or what! Check out the current temperature!!! And we're just getting started with the bitter cold part of winter... Not the time of year to take a leak in the great outdoors!!! Might end up having some unfortunate surgery!!! :twisted:
And then I found the ORB!!! So a new scrot to show it off! Already made a couple other edits as well. Changed how sed was printing out the message underneath the days forecast to include the whole thing... The next few days, since I have the real-estate, I'll add another day to the thing so it's an official 3 day forecast. Well 4 if you count "Today"... Of all the Conky's I've done, this one is the one I'm most proud of! How silly is that?
http://en.zimagez.com/miniature/coldoutside.jpg
Compare the RAM usage between the two scrots! Over 20 hours of uptime, Iceweasel open in the top one then closed in the bottom one. Amazing!!!
Code:# killall conky && conky -c /media/5/Conky/S11_VSIDO.conkyrc &
# Original by: VastOne on VSIDO
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
# Use Xft?
use_xft yes
xftfont Monofur:bold:size=12
xftalpha 1.0
# text_buffer_size 256
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
# own_window_argb_visual yes
own_window_class Conky
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
# border width
border_width 0
# Default colors and also border colors
default_color 00BFFF # 0 191 255 DeepSkyBlue
color0 FFDEAD #255 222 173 NavajoWhite
color1 7FFF00 #127 255 0 Chartreuse
color2 778899 #119 136 153 LightSlateGray
color3 FF8C00 #255 140 0 DarkOrange
color4 F0FFFF #240 255 255 Azure
color5 FFDEAD #255 222 173 NavajoWhite
color6 7B68EE #123 104 238 MediumSlateBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 FF0000 #255 0 0 Red
#default_shade_color black
#default_outline_color grey
own_window_colour 000000
# Text alignment, other possible values are commented
#alignment top_middle
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 0
minimum_size 1310 0 ## width, height
#maximum_width 1000 ## width
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# 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 yes
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off (no).
short_units yes
lua_load /home/jed/conky/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x2B4287 0.2
#
TEXT
${lua conky_draw_bg 10 0 20 0 80 0x558FEE 0.3}\
${image /home/jed/images/VSIDO_red.png -p 0,20 -s 70x70}\
${color} Distro ${color4}${execi 2600 cat /etc/issue.net} ${color}Kernel ${color4}${kernel}\
${color} MEM${color4}${if_match ${memperc}<10} ${memperc}\
${else}${if_match ${memperc}<100} ${memperc}\
${else}${memperc}${endif}${endif}% \
${color}(${mem}/${memmax})\
${color}CPU: 1${color4}${if_match ${cpu cpu1}<10} ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${cpu cpu2}${endif}${endif}%\
${color}2${color4}${if_match ${cpu cpu2}<10} ${cpu cpu0}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${cpu cpu0}${endif}${endif}%\
${color}3${color4}${if_match ${cpu cpu3}<10} ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%\
${color}4${color4}${if_match ${cpu cpu4}<10} ${cpu cpu4}\
${else}${if_match ${cpu cpu4}<100} ${cpu cpu4}\
${else}${cpu cpu4}${endif}${endif}%\
${color} NET${color4} Dn: ${color2}${downspeedgraph wlan0 12,100 00ff00 ff0000 -t -l} ${color}Up: ${color2}${upspeedgraph wlan0 12,100 ff0000 00ff00 -t -l} ${color}Uptime ${color1}${uptime_short}\
${color} Wireless Signal${color1}: ${wireless_link_qual_perc wlan0}% ${color}Sys Temp: ${color1}${hwmon temp 1}ºC\
${color}${texeci 500 bash $HOME/Conky/accuweather_conky/Accuweather_Conky_USA_Images/acc_usa_images}${voffset -70}${goto 565}${image $HOME/Accuweather_Conky_USA_Images/cc.png -p 595,10 -s 135x81}Right Now
${goto 570}${font Arial:size=10}${color4}${execpi 600 sed -n '3p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 580}${font}${color 00BFFF}TEMP:${color4}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_USA_Images/curr_cond}°F (${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_USA_Images/curr_cond}°F)
${voffset -80}${font Arial:size=9}${goto 750}${color 00BFFF}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_USA_Images/tod_ton}${goto 905}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_USA_Images/tod_ton}${goto 1070}${execpi 600 sed -n '16p' $HOME/Accuweather_Conky_USA_Images/tod_ton}${color}${font}${image $HOME/Accuweather_Conky_USA_Images/7.png -p 780,20 -s 90x54}
${voffset -5}${font Arial:size=8}${goto 765}H: ${color4}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F${color}${goto 920}H: ${color4}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F${color}${goto 1085}H: ${color4}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F
${color}${goto 765}L: ${color4}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F${color}${goto 920}L: ${color4}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F${color}${goto 1085}L: ${color4}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_USA_Images/tod_ton}°F
${color1}${image $HOME/Accuweather_Conky_USA_Images/12.png -p 955,20 -s 90x54}${image $HOME/Accuweather_Conky_USA_Images/17.png -p 1105,20 -s 90x54}${goto 750}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_USA_Images/messages}${goto 905}${execpi 600 sed -n '3p' $HOME/Accuweather_Conky_USA_Images/messages}${goto 1070}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_USA_Images/messages}
${color}${voffset -50}${goto 1225}gmail: ${color4}${execi 90 conkyEmail --servertype=POP --servername=pop.googlemail.com --ssl --username=yourusername --password=yourpassword --mailinfo=0}
${color}${voffset 0}${goto 1225}account2: ${color4}${execi 90 conkyEmail --servertype=POP --servername=mail.any.com --ssl --username=yourusername --password=yourpassword --mailinfo=0}
${color}${voffset 0}${goto 1225}account3: ${color4}${execi 90 conkyEmail --servertype=POP --servername=pop3.live.com --ssl --username=yourusername --password=yourpassword --mailinfo=0}
${color}${voffset 0}${goto 1225}account4: ${color4}${execi 90 conkyEmail --servertype=POP --servername=pop3.live.com --ssl --username=yourusername --password=yourpassword --mailinfo=0}
After midnight the "Right Now" is just showing the current temp with the 'feels like' in quotes next to it. At some point during the night, the "Today" changed to reflect the high and low for Wed, which would be correct. Just checked it against the Accuweather.com sight, and it is all reading the exact same info as the web-site!
Thanks
Jed
My conky is just a basic bog-standard one with no graphics, suitable for an office machine, with the emphasis on providing information.
But it is annoying me in that its shifted over to the left and left about 1.5 inches of spare white space on its right, dead real estate! If anyone can tell me how to get it shifted back again to the right, I'd be very grateful.Code:
Code:
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - netstat connections to your computer
#
# -- Pengo (conky@pengo.us)
#
# Create own window instead of using desktop (required in nautilus)
own_window yes
#own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#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 3.0
# Minimum size of text area
#minimum_size 300
# Draw shades?
draw_shades yes
# Text stuff
draw_outline no # amplifies text if yes
draw_borders yes
max_text_width 25
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 3
# Default colors and also border colors, grey90 == #e5e5e5
default_color blue
default_shade_color black
default_outline_color white
own_window_colour white
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 5
gap_y 5
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale no
xftfont Terminus:size=8
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}CPU:${color } $cpu% ${acpitemp}C
${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: ${fs_size /}/${fs_free /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}${if_existing /media/backup}BACKUP: ${fs_size /media/backup}/${fs_free /media/backup}${else} BACKUP: Not Mounted${endif}
${offset 240}${fs_bar 3,100 /media/backup}
${offset 240}${color slate grey}${if_existing /media/8979-95BD}PHONE: ${fs_size /media/8979-95BD}/${fs_free /media/8979-95BD} free${else}PHONE: Not mounted${endif}
${offset 240}${fs_bar 3,100 /media/8979-95BD}
${offset 240}${color slate grey}${if_existing /media/truecrypt1}TRUECRYPT: ${fs_size /media/truecrypt1}/${fs_free /media/truecrypt1}${else}TRUECRYPT: Not mounted${endif}
#${offset 240}${fs_bar 3,100 /media/truecrypt1}
${offset 240}${color slate grey}NET: (${addr eth0})
${offset 240}${color}Up: ${color }${upspeed eth0}
${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}
#${offset 240}${color slate grey}ALBUM PLAYING:
#${offset 240}${color slate grey}${xmms2_album}
#${offset 240}${color slate grey}ARTIST PLAYING:
#${offset 240}${color slate grey}${xmms2_artist}
#${offset 240}${color slate grey}${xmms2_title}
#${offset 240}${xmms2_bar 5,100}
#${offset 240}$xmms2_percent $xmms2_elapsed/$xmms2_duration
${offset 240}${color slate grey}GMAIL: ${color lightgrey} ${execi 300 python ~/.conky/gmail.py}
${offset 240}${color slate grey}WEATHER:
${offset 240}${color lightgrey}${execi 300 ~/.conky/weather2.sh "EUR|UK|me14-1|Maidstone"}
${offset 240}MPD: $mpd_status
${offset 240}$mpd_artist
${offset 240}$mpd_title
#${offset 240}${scroll length (200) text}
${offset 240}${mpd_bar 5,100}
${offset 240}$mpd_percent $mpd_elapsed/$mpd_length
${offset 240}${color slate grey}APT-GET: ${execi 300 apt-get -s upgrade|grep installed|cut -d' ' -f1} updates ready
${offset 240}TODAY: ${execi 300 vnstat | grep "today" | awk '{print $8 $9}'}
${offset 240}MONTH: ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}
Thanks
Sharon.
Favoured by many... I need a magnifying glass to read it though :D
Don't know what desktop you are using but it might have an affect.
I had to make some changes to get it to work here.
1. I was getting text buffer over flow errors so above TEXT I added:
2. border margins have changed:Code:# Text stuff
draw_outline no # amplifies text if yes
draw_borders yes
#max_text_width 25 ### <--- commented this out
text_buffer_size 1024 ### <--- this
is defunct so I changed it and added it's counterpart with a 0 option:Code:# border margins
border_margin 4
3. and I changed:Code:# border margins
border_inner_margin 4
border_outer_margin 0
depends a lot on desktop environment, works best for me.Code:own_window_type normal #override
With "override" "own_window_hints" are ignored.
4. options for use_spacer changed a while back:
5 usually a good idea to set this to 'yes':Code:use_spacer right # yes | no are not options: left | right | none
I didn't since my system is set to utf8, but it helps some fonts that misbehave at times.Quote:
override_utf8_locale Force UTF8? requires XFT
http://t.imgbox.com/abui15UB.jpg
If you need more help just yell.