You are not logged in.

#451 2010-01-24 11:34:34

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: conky configs and screenshots!

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

#452 2010-01-24 12:00:25

Szycha
Member
From: Poland, WLKP
Registered: 2008-07-03
Posts: 22

Re: conky configs and screenshots!

@Sen
I can say just one thing about your Conky
http://www.youtube.com/watch?v=SjiP57ma … re=related

Offline

#453 2010-01-26 00:34:15

heazky
Member
Registered: 2008-10-26
Posts: 39

Re: conky configs and screenshots!

Offline

#454 2010-01-27 01:23:45

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: conky configs and screenshots!

Anychance you could repost those 2 config files? That's exactly how I want my weather

Offline

#455 2010-01-27 09:59:11

MW
Member
Registered: 2007-07-27
Posts: 127

Re: conky configs and screenshots!

na12 wrote:

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

#456 2010-01-27 10:34:47

Daisuke_Aramaki
Member
From: ++49/711
Registered: 2008-10-06
Posts: 651
Website

Re: conky configs and screenshots!

MW wrote:

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.

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.

http://bbs.archlinux.org/viewtopic.php?id=63986


"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

#457 2010-01-27 11:10:15

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

Daisuke_Aramaki wrote:
MW wrote:

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.

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.

http://bbs.archlinux.org/viewtopic.php?id=63986

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

Offline

#458 2010-01-27 17:45:10

MW
Member
Registered: 2007-07-27
Posts: 127

Re: conky configs and screenshots!

Thanks a million! Will try the suggestions right away.

Offline

#459 2010-02-03 16:45:13

goran'agar
Member
From: Nothern Italy
Registered: 2009-05-19
Posts: 171

Re: conky configs and screenshots!

tM2Z0OQ


Sony Vaio VPCM13M1E  - Arch Linux - LXDE

Offline

#460 2010-02-04 10:03:43

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

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 smile


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#461 2010-02-04 20:14:58

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

kaivalagi wrote:

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 smile

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! smile

edit:
Just tested it... very nice, thanks again!
conky_weather.png

Last edited by sen (2010-02-04 21:53:24)

Offline

#462 2010-02-04 22:17:54

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

sen wrote:

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

sen wrote:

I didn't know that the script could also provide images, thank you very much for the suggestion.
Great work with the script btw! smile

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.

sen wrote:

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 wink 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)


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#463 2010-02-04 23:06:27

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

kaivalagi wrote:

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!

kaivalagi wrote:

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. sad

kaivalagi wrote:

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. wink

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)

Offline

#464 2010-02-04 23:16:33

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

sen wrote:

Oh, mpdcron is nice... I probably wouldn't have written the script if I knew about it. wink

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
sen wrote:

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)


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#465 2010-02-04 23:23:41

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

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! smile
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. wink

Last edited by sen (2010-02-04 23:28:22)

Offline

#466 2010-02-05 00:00:03

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

sen wrote:
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! smile
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. wink

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 wink

Cheers


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#467 2010-02-05 00:05:56

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

kaivalagi wrote:

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 wink

Cheers

Great, thank you very much! big_smile

Offline

#468 2010-02-08 22:07:21

lman
Member
From: CZ
Registered: 2007-12-18
Posts: 255

Re: conky configs and screenshots!

Am I the only one who has leaks with rings.lua? maybe cairo problem. With every refresh 4 bytes...

Offline

#469 2010-02-09 08:21:04

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: conky configs and screenshots!

lman wrote:

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

20100209-08_23_12.jpg

I am using gnome applets for all monitoring of the usual suspects now...

Last edited by kaivalagi (2010-02-09 08:24:42)


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#470 2010-02-13 12:31:42

Devastator
Member
From: Poland
Registered: 2008-05-27
Posts: 179

Re: conky configs and screenshots!

After reading through this thread I have learned that conky can display images big_smile

So... because I am a dedicated skier, I decided to use conky to display me some nice skis on the desktop:
tM2pnNQ

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:
tM2pnOA

.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

#471 2010-02-15 12:38:13

Rydgel
Member
From: France
Registered: 2008-09-04
Posts: 166
Website

Re: conky configs and screenshots!

Very impressive. Keep up the good work, it's awesome smile

Offline

#472 2010-02-17 02:11:06

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: conky configs and screenshots!

found this monster of a conky setup on the ubuntuforums:

http://i806.photobucket.com/albums/yy34 … l/full.png


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

#473 2010-02-17 11:01:50

wilsaooo
Member
Registered: 2010-01-31
Posts: 15

Re: conky configs and screenshots!

Rasi wrote:

found this monster of a conky setup on the ubuntuforums:

http://i806.photobucket.com/albums/yy34 … l/full.png

cool!

that ubuntu thread is such a good place to find some database for conky stuff big_smile

Offline

#474 2010-02-17 15:42:17

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: conky configs and screenshots!

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. smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#475 2010-02-17 17:38:42

jstadler
Member
From: Canada
Registered: 2010-01-04
Posts: 47

Re: conky configs and screenshots!

fsckd wrote:

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. smile

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

Board footer

Powered by FluxBB