You are not logged in.
this is my conky screenshot: http://img121.imageshack.us/img121/5509 … 6x768s.png
.conkyrc
# set to yes if you want tormo to be forked in the background
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font *mintsmild.se*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
# Text alpha when using Xft
xftalpha 0.8
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 230 5
maximum_width 230
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# 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 black
default_outline_color black
# 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 13
gap_y 7
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #88aadd}$nodename - $sysname $kernel on $machine
$hr
${color #88aadd}System Info:
${color lightgrey}CORE 1:${color} ${cpu 1}${color lightgrey}% ${alignr}${offset -49}${color}${freq_g 1} ${color lightgrey}Ghz
${color lightgrey}CORE 2:${color} ${cpu 2}${color lightgrey}% ${alignr}${offset -49}${color}${freq_g 2} ${color lightgrey}Ghz
${color lightgrey}Uptime: ${color}$uptime
${color lightgrey}Processes:$color $running_processes/$processes ${offset 6}${color lightgrey}Load:$color ${loadavg 3}
${color lightgrey}RAM:$color $mem${color lightgrey} /${color}$memmax ( $memperc% )
${color lightgrey}Swap:$color $swap${color lightgrey} / ${color}$swapmax ( $swapperc% )
$hr
${color #88aadd}Memory usage:
${color lightgrey}Name PID CPU% MEM%
${color}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
$hr
${color #88aadd}Network:
${color lightgrey}Net: $color${addr eth0}${offset 6}${color lightgrey}
Essid: ${color}${exec sudo iwconfig eth0 | grep "ESSID" | cut -c 32-45}
${color lightgrey}Up:${color} ${upspeedf eth0} k/s${color lightgrey}${alignr}${color lightgrey}Tot:${color} ${totalup eth0} ${color lightgrey}
${color lightgrey}Down: ${color}${downspeedf eth0} k/s ${alignr}${color lightgrey}Tot:${color} ${totaldown eth0}
$hr
${voffset 5}${color #88aadd}Disks:
/ $color${fs_used /} / ${fs_size} (${fs_free /})${fs_used_perc /}${color lightgrey}%${offset 53}
${color #88aadd}dati $color${fs_used /media/dati} / ${fs_size /media/dati} (${fs_free /media/dati})${fs_used_perc /media/dati}${color lightgrey}%${offset 53}
${color #88aadd}win $color${fs_used /media/windows} / ${fs_size /media/windows} (${fs_free /media/windows})${fs_used_perc /media/windows}${color lightgrey}%${voffset 5}
$hr
${color #88aadd}Inbox: samumatt@gmail.com
${font}${execpi 300 python ~/Scripts/conkyscripts/gmail_parser.py <yourgmailuser><yourgmailpass> 3}
${color #88aadd}Inbox: vivosunamela85@gmail.com
${font}${execpi 300 python ~/Scripts/conkyscripts/gmail_parser.py<yourgmailuser><yourgmailpass> 3}
$hr
${color #88aadd}Banshee${alignr}${offset -22}
$color artist: ${color #88aadd}${execi 15 ~/conkyshee.py -a}
$color track: ${color #88aadd}${execi 15 ~/conkyshee.py -n}${voffset 5}
this is gmail_parser.py script (put it wherever you want, chmod +x, and then update your conky script with details)
## check-gmail.py -- A command line util to check GMail -*- Python -*-
## modified to display mailbox summary for conky
# ======================================================================
# Copyright (C) 2006 Baishampayan Ghose <b.ghose@ubuntu.com>
# Modified 2008 Hunter Loftis <hbloftis@uncc.edu>
# Time-stamp: Mon Jul 31, 2006 20:45+0530
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
# ======================================================================
import sys
import urllib # For BasicHTTPAuthentication
import feedparser # For parsing the feed
from textwrap import wrap
_URL = "https://mail.google.com/gmail/feed/atom"
uname = sys.argv[1]
password = sys.argv[2]
maxlen = sys.argv[3]
urllib.FancyURLopener.prompt_user_passwd = lambda self, host, realm: (uname, password)
def auth():
'''The method to do HTTPBasicAuthentication'''
opener = urllib.FancyURLopener()
f = opener.open(_URL)
feed = f.read()
return feed
def readmail(feed, maxlen):
'''Parse the Atom feed and print a summary'''
atom = feedparser.parse(feed)
print '${color1} %s new email(s)\n' % (len(atom.entries))
for i in range(min(len(atom.entries), maxlen)):
print '${color2}%s' % atom.entries[i].title
#uncomment the following line if you want to show the name of the sender
# print '${color2}%s' % atom.entries[i].author
if len(atom.entries) > maxlen:
print ' ${color}more...'
if __name__ == "__main__":
f = auth() # Do auth and then get the feed
readmail(f, int(maxlen)) # Let the feed be chewed by feedparser
Offline
@Sen
I can say just one thing about your Conky
http://www.youtube.com/watch?v=SjiP57ma … re=related
Offline
Work of art !
Offline
Anychance you could repost those 2 config files? That's exactly how I want my weather
Offline
I was playing with conky-lua
http://i.imagehost.org/t/0420/Screenshot_10.jpg
It's been quite a while since I used conky, and I followed your config but I only get a huge black box on the right hand side of the screen.
I'm using:
KDE 4.3
conky-lua
Is there something special I should be aware of? The wiki is not specific on what special KDE precautions there are to be taken.
Offline
I'm using:
KDE 4.3
conky-luaIs there something special I should be aware of? The wiki is not specific on what special KDE precautions there are to be taken.
Could it be the classic transparency issue? I think using feh to manage your desktop background will aid conky setup on kde4.x Please have a look at this thread for more information.
"You know what I found? Right in the kernel, in the heart of the operating system, I found a developer's comment that said, `Does this belong here?`" -- Simon Lok about Linux kernel in 2005
Reflections on the Strange and the not so Strange
http://skinwalker.wordpress.com
Offline
MW wrote:I'm using:
KDE 4.3
conky-luaIs there something special I should be aware of? The wiki is not specific on what special KDE precautions there are to be taken.
Could it be the classic transparency issue? I think using feh to manage your desktop background will aid conky setup on kde4.x Please have a look at this thread for more information.
Hm, I had a similar issue with compiz once and fixed it by changing the "window type" in conky. If the feh trick doesn't work you could try that.
own_window_type >>> normal, desktop or override
deviantART | GitHub | Last.fm
Offline
Thanks a million! Will try the suggestions right away.
Offline
That config is pretty impressive I must say, there is one thing I would suggest to improve it with.
If your using my conkyForecast script then you're also using the conky weather font and the WF datatype for the current weather symbol I assume? If this is what is being used may I suggest that you use the $image variables in conky to display an image for the weather rather than a font...the new datatype to provide the image path is "WI". If a template is used then this path can be placed inside an $image variable easily in the template and exec'ed through execpi
I hope I made sense, any questions just ask
Nice work
Offline
That config is pretty impressive I must say, there is one thing I would suggest to improve it with.
If your using my conkyForecast script then you're also using the conky weather font and the WF datatype for the current weather symbol I assume? If this is what is being used may I suggest that you use the $image variables in conky to display an image for the weather rather than a font...the new datatype to provide the image path is "WI". If a template is used then this path can be placed inside an $image variable easily in the template and exec'ed through execpi
I hope I made sense, any questions just ask
Nice work
Thank you! Yes, I'm using your conkyForecast script with the weather font (there is a little setup guide + links in the documentation of the conky-script).
I didn't know that the script could also provide images, thank you very much for the suggestion.
Great work with the script btw!
edit:
Just tested it... very nice, thanks again!
Last edited by sen (2010-02-04 21:53:24)
deviantART | GitHub | Last.fm
Offline
Thank you! Yes, I'm using your conkyForecast script with the weather font (there is a little setup guide + links in the documentation of the conky-script).
What, that little readme was useful! Documentation is NOT my strong point
I didn't know that the script could also provide images, thank you very much for the suggestion.
Great work with the script btw!
Something I introduced based on my gtk-desktop-info app contents, once images were supported in conky. My player scripts also provide image paths for the cover art of the currently playing track (were available and/or coded for). I have created a bunch of python scripts, they'll all in the AUR, click on the link in my sig to see them. They all install from the source files on launchpad so are up-to-date.
edit:
Just tested it... very nice, thanks again!
http://i.imagehost.org/0152/conky_weather.png
My pleasure, glad I could be of help
Edit: already on conky hardcore - I think Bruce may want to update the page for it...
I would also suggest getting this up on conky.linux-hardcore.com, it is very much worth showing off I think quite a few different distro users frequent that place and would find an example like this quite inspiring...
Have you thought about using the lua scripting now available with conky for anything new? Not sure what animation could be done on value changes for example...
Edit: Like your mpd_infos.py script, I ended up using mpdcron which I "hook" on song changes and generate updated sym links to the cover art and lyrics, you should check it out. http://alip.github.com/mpdcron/ - mpdcron-git in the AUR
Last edited by kaivalagi (2010-02-04 22:42:07)
Offline
Edit: already on conky hardcore - I think Bruce may want to update the page for it...
I would also suggest getting this up on conky.linux-hardcore.com, it is very much worth showing off I think quite a few different distro users frequent that place and would find an example like this quite inspiring...
Hm, didn't know about that page. Some nice configs there!
Have you thought about using the lua scripting now available with conky for anything new? Not sure what animation could be done on value changes for example...
I'll definitely play with it some more when I have more free time. Currently I'm in the midst of my exam period.
Like your mpd_infos.py script, I ended up using mpdcron which I "hook" on song changes and generate updated sym links to the cover art and lyrics, you should check it out. http://alip.github.com/mpdcron/ - mpdcron-git in the AUR
Oh, mpdcron is nice... I probably wouldn't have written the script if I knew about it.
I hope you don't mind helping me a little with the forecast script, there is one thing I haven't figured out until now. Do you know if it is possible to set an max char length for the CT datatype inside a template? (10 characters for example)
This could be done if I run the script inside conky via execi and just cut the output but I dunno how to do this when I use a template!
Last edited by sen (2010-02-04 23:13:14)
deviantART | GitHub | Last.fm
Offline
Oh, mpdcron is nice... I probably wouldn't have written the script if I knew about it.
This is what I do for cover art, I have a similar script for lyrics, which are retrieved through Sonata in the first instance
~/.mpdcron/hooks/player:
#!/usr/bin/env sh
hooks/coverart.sh
hooks/lyrics.sh
~/.mpdcron/hooks/coverart.sh:
#!/usr/bin/env sh
# get cover (if found) and copy it to /tmp/cover
coverfile="$HOME/.covers/$MPD_SONG_TAG_ARTIST-$MPD_SONG_TAG_ALBUM.jpg"
#blankcoverfile="$HOME/.covers/nocover.jpg"
outputcoverfile="/tmp/coverart.jpg"
if [ -f "$coverfile" ]; then
rm -f "$outputcoverfile"
echo "coverart.sh - Linking '$outputcoverfile' to cover file '$coverfile'"
ln -s "$coverfile" "$outputcoverfile"
else
rm -f "$outputcoverfile"
fi
I hope you don't mind helping me a little with the forecast script, there is one thing I haven't figured out until now. Do you know if it is possible to set an max char length for the CT datatype inside a template? (10 characters for example)
This could be done if I run the script inside conky via execi and just cut the output but I dunno how to do this when I use a template!
In theory you could use the $scroll variable in the template to marquee the extra text length you don't want?
It has to be in the template for it to work, as there are no options to reduce length in the script (yet). There is a -c/--centeredwidth option, at present it doesn't truncate when set smaller than the actual output...I am tempted to have it trim from the right any text length bigger than was set...would this be helpful to use? If the text was smaller than the set length then it would be padded with spaces either side...
Last edited by kaivalagi (2010-02-04 23:23:46)
Offline
I am tempted to have it trim from the right any text length bigger than set...would this be helpful to use?
This is exactly what I was looking for!
I'll try to use $scroll though, could be nice as well... thanks!
edit:
Thanks for sharing the cover script!
You may want to add local album paths (the album dirs) like I did in my script. This is kinda nice if you don't have all your covers in ~/.covers like me.
Last edited by sen (2010-02-04 23:28:22)
deviantART | GitHub | Last.fm
Offline
kaivalagi wrote:I am tempted to have it trim from the right any text length bigger than set...would this be helpful to use?
This is exactly what I was looking for!
I'll try to use $scroll though, could be nice as well... thanks!edit:
Thanks for sharing the cover script!
You may want to add local album paths (the album dirs) like I did in my script. This is kinda nice if you don't have all your covers in ~/.covers like me.
I have another python script somewhere I knocked up to retrieve off the web too, I should use mix that and yours together to automate the whole cover art gathering function
I have just updated conkyForecast, and uploaded a new PKGBUILD to the AUR for the new code revision...--centeredwidth will now truncate or expand a string to the size set. Do your "yaourt/bauerbill/packer -S conkyforecast-bzr" for an updated script
Cheers
Offline
I have another python script somewhere I knocked up to retrieve off the web too, I should use mix that and yours together to automate the whole cover art gathering function
I have just updated conkyForecast, and uploaded a new PKGBUILD to the AUR for the new code revision...--centeredwidth will now truncate or expand a string to the size set. Do your "yaourt/bauerbill/packer -S conkyforecast-bzr" for an updated script
Cheers
Great, thank you very much!
deviantART | GitHub | Last.fm
Offline
Am I the only one who has leaks with rings.lua? maybe cairo problem. With every refresh 4 bytes...
Offline
Am I the only one who has leaks with rings.lua? maybe cairo problem. With every refresh 4 bytes...
I saw massive memory usuage after running with lua for a while, I now have no lua at all, just this down the right hand side of my second screen
I am using gnome applets for all monitoring of the usual suspects now...
Last edited by kaivalagi (2010-02-09 08:24:42)
Offline
After reading through this thread I have learned that conky can display images
So... because I am a dedicated skier, I decided to use conky to display me some nice skis on the desktop:
I have also wrote a script that picks a random ski from given folder, and made conky to call it every 30 seconds, so the ski image changes constantly:
.conkyrc:
alignment bottom_middle
double_buffer yes
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 0
gap_y 40
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
minimum_size 1000 100
show_graph_scale no
show_graph_range no
TEXT
${execpi 30 ~/scripts/randomimage.sh}
randomimage.sh:
files=(~/Images/Show/*)
N=${#files[@]}
((N=RANDOM%N))
randomfile=${files[$N]}
echo \$\{image $randomfile -p 0,0 -s 1000x100\}
Some applications are WYSIWYG, and some are WYSIWTF.
Offline
Very impressive. Keep up the good work, it's awesome
Offline
found this monster of a conky setup on the ubuntuforums:
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
found this monster of a conky setup on the ubuntuforums:
cool!
that ubuntu thread is such a good place to find some database for conky stuff
Offline
What's the point in posting that without all the links?
http://ubuntuforums.org/showpost.php?p= … ount=12047
http://www.totalinux.org/forum/index.ph … tml#msg737
Later on in the Ubuntu thread he states he'll post a tar when he finishes but you can get a version from the TotalLinux thread. Enjoy.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
What's the point in posting that without all the links?
http://ubuntuforums.org/showpost.php?p= … ount=12047
http://www.totalinux.org/forum/index.ph … tml#msg737
Later on in the Ubuntu thread he states he'll post a tar when he finishes but you can get a version from the TotalLinux thread. Enjoy.
That's a pretty cool idea he has there, but i dont think i'd use it. Doesn't look like i'd be easy to customize from there.
Offline