Conky Showoff thread

Forum rules
Before you post please read how to get help

Re: Conky Showoff thread

Postby zerozero on Sat Jan 22, 2011 10:06 pm

you can try this:

Code: Select all
#!/usr/bin/env python2

import os
 
#Enter your username and password below within double quotes
# eg. username="username" and password="password"
domain="mail.google.com"
username="yourusername"
password="yourpassword"
com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"

temp=os.popen(com)
msg=temp.read()
index=msg.find("<fullcount>")
index2=msg.find("</fullcount>")
fc=int(msg[index+11:index2])

if fc==0:
   print "0 new"
else:
   print str(fc)+" new"


save it ni home /scripts, name it gmail.py, make it executable and call it in you conky with

Code: Select all
G${execpi 120 python /home/yournamehere/scripts/gmail.py}
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Linux Mint is funded by ads and donations.
 

Re: Conky Showoff thread

Postby d00med on Sat Jan 22, 2011 10:42 pm

Still nothing. I may be missing an imap configuration somewhere. Thanks though.
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: Conky Showoff thread

Postby zerozero on Sat Jan 22, 2011 10:52 pm

its late now, but tmrw i come to this again, in the meantime, start conky in the terminal and check the errors it gives you.
the script is very straightforward, doesn't demand any extra conf. in gmail, overlook your steeps and we'll check it again tmrw.
cya
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky Showoff thread

Postby d00med on Sat Jan 22, 2011 10:54 pm

Cool, thanks!
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: Conky Showoff thread

Postby zerozero on Sun Jan 23, 2011 7:43 am

let's start from the beginning:
(i've no idea how familiar you are with conky, so i will try to be very self-explanatory - if there's something very obvious, sorry :mrgreen: )

1- create a folder (if you don't have one) in your home called scripts;
2- save this text bellow, only editing the marked parts in that folder and name it gmail.py;

###########################################################
#!/usr/bin/env python2

import os

#Enter your username and password below within double quotes
# eg. username="username" and password="password"
domain="mail.google.com"
username="----------------" # <--enter here your gmail username with the quotes
password="-----------------" # <--enter here your gmail pw with the quotes
com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate" # <--don't touch

temp=os.popen(com)
msg=temp.read()
index=msg.find("<fullcount>")
index2=msg.find("</fullcount>")
fc=int(msg[index+11:index2])

if fc==0:
print "0 new"
else:
print str(fc)+" new"

#############################################################

3- now, you saved it inside the scripts folder, you have to make it executable:
-a: right click on it, properties, permissions, tick the box "allow executing file as program":

4-In conky, you call the script with this line
Code: Select all
    Gmail ${execpi 120 python /home/yournamehere/scripts/gmail.py}

- after /home/ you have to edit the line with your name.

Troubleshooting:
1- make sure you have conky-all installed,
2- make sure you have wget installed
3- when editing the conky, start it with the terminal, just typing conky, this way you can the errors

Let's see if it works :)
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky Showoff thread

Postby d00med on Sun Jan 23, 2011 11:32 am

Thanks for your help. I do get this error
Code: Select all
File "/home/***/scripts/gmail.py", line 20
    print "0 new"
        ^
IndentationError: expected an indented block

What appears to be happening though, is that the python script doesn't like the & in my password. I'll have to change it, but I'm hoping I can use other non numeric characters.

[edit] Working now. Thanks.
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: Conky Showoff thread

Postby zerozero on Sun Jan 23, 2011 11:53 am

wait a second, i think there's no need to change your pass.
you copy the script from my last post, right? Formatting was lost :oops:
check this link
http://www.daniweb.com/forums/thread122149.html
basically what you have to do, and i hope it works is grab the code from the post above and make the changes there.
see if then works
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky Showoff thread

Postby d00med on Sun Jan 23, 2011 9:00 pm

There was a formatting problem in the last code box. I used the one from your previous post and it worked. It shows in the terminal that the script stops at the & symbol, and then feeds just the remaining url after that character to google, so it was sending only "xx@mail.google.com."
d00med
Level 4
Level 4
 
Posts: 333
Joined: Fri Nov 26, 2010 9:55 am

Re: Conky Showoff thread

Postby ackernan on Sat Feb 05, 2011 6:45 am

I'm not a conky guru. Found some stuff I liked and made it work for me.
ackernan
Level 1
Level 1
 
Posts: 18
Joined: Sun Dec 19, 2010 8:39 am

Re: Conky Showoff thread

Postby dawgdoc on Sat Feb 05, 2011 3:59 pm

@ackerman

you went from "not a conky guru" to a full fledged conkyite.
Image

SYSTEM: Compaq Presario CQ62 Dual-Boot: Mint 17 Cinnamon, LMDE
READING: Smoke Screen by Dick Francis
User avatar
dawgdoc
Level 9
Level 9
 
Posts: 2724
Joined: Mon Oct 05, 2009 12:53 am
Location: Kentucky, USA the land of Mint Juleps

Re: Conky Showoff thread

Postby vrkalak on Sun Feb 06, 2011 5:54 pm

As per request for my Conkyrc script for this screenshot:

Image

Code: Select all
# conky 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.
#
##############################################
#  Settings
##############################################
background yes
background_color 505050
use_xft yes
xftfont ubuntu:bold:size=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 220
maximum_width 220
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 303030
default_shade_color 505050
default_outline_color 505050
alignment bottom_left
gap_x 10
gap_y -172
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

#color1 006FC0
#color1 333333
#color1 D24C16
#color1 76B81C
color1 green
#color2 787878
#color2 333333
#color2 25221E
color2 959595

mpd_host lappy
mpd_port 6600
imlib_cache_size 0

##############################################
#  Output${cpu cpu1}%
##############################################
TEXT
${color1}${alignc}${font ubuntu:bold:size=14}SYSTEM INFO:
${color2}${hr 2}
${font ubuntu:bold:size=12}Distro:         (Mint)${alignr}LMDE

OS:${alignr}Debian 6.0

DE/WM:${alignr}Gnome 2.30

Kernel:${alignr}$kernel
${hr 2}
Up-time:${alignr}$uptime

Frequency:${alignr}${freq_G}GHz

${color2}HHD${goto 55}${if_match ${fs_used_perc /} >0}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >10}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >20}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >30}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >40}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >50}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >60}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >70}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >80}${color1}${else}${color2}${endif}O${if_match ${fs_used_perc /} >90}${color1}${else}${color2}${endif}O${alignr}$if_mpd_playing$mpd_album$endif$alignr${color1}${fs_used_perc /}%

${color2}CPU${goto 55}${if_match ${cpu} >0}${color1}${else}${color2}${endif}O${if_match ${cpu} >10}${color1}${else}${color2}${endif}O${if_match ${cpu} >20}${color1}${else}${color2}${endif}O${if_match ${cpu} >30}${color1}${else}${color2}${endif}O${if_match ${cpu} >40}${color1}${else}${color2}${endif}O${if_match ${cpu} >50}${color1}${else}${color2}${endif}O${if_match ${cpu} >60}${color1}${else}${color2}${endif}O${if_match ${cpu} >70}${color1}${else}${color2}${endif}O${if_match ${cpu} >80}${color1}${else}${color2}${endif}O${if_match ${cpu} >90}${color1}${else}${color2}${endif}O $alignr${color1}${cpu cpuperc}%
           
${color2}RAM${goto 55}${if_match ${memperc} >0}${color1}${else}${color2}${endif}O${if_match ${memperc} >10}${color1}${else}${color2}${endif}O${if_match ${memperc} >20}${color1}${else}${color2}${endif}O${if_match ${memperc} >30}${color1}${else}${color2}${endif}O${if_match ${memperc} >40}${color1}${else}${color2}${endif}O${if_match ${memperc} >50}${color1}${else}${color2}${endif}O${if_match ${memperc} >60}${color1}${else}${color2}${endif}O${if_match ${memperc} >70}${color1}${else}${color2}${endif}O${if_match ${memperc} >80}${color1}${else}${color2}${endif}O${if_match ${memperc} >90}${color1}${else}${color2}${endif}O$if_mpd_playing${alignr}$mpd_artist$endif $alignr${color1}${memperc}%

${color2}SWP${goto 55}${if_match ${swapperc} >0}${color1}${else}${color2}${endif}O${if_match ${swapperc} >10}${color1}${else}${color2}${endif}O${if_match ${swapperc} >20}${color1}${else}${color2}${endif}O${if_match ${swapperc} >30}${color1}${else}${color2}${endif}O${if_match ${swapperc} >40}${color1}${else}${color2}${endif}O${if_match ${swapperc} >50}${color1}${else}${color2}${endif}O${if_match ${swapperc} >60}${color1}${else}${color2}${endif}O${if_match ${swapperc} >70}${color1}${else}${color2}${endif}O${if_match ${swapperc} >80}${color1}${else}${color2}${endif}O${if_match ${swapperc} >90}${color1}${else}${color2}${endif}O${alignr}$if_mpd_playing$mpd_album$endif $alignr${color1}${swapperc}%

${color2}Desktop No.${alignr}$desktop_name

Up Speed:${alignr}${upspeed ppp0}

Down Speed:${alignr}${color1}${downspeed ppp0}
${color2}${hr 2}
 
$alignc${color1}${font ubuntu:bold:size=12}${time %A %d %B }   
            ${color2} ${font ubuntu:bold:size=30}${time %H:%M}


As is the norm, there is a good deal of modification to my Conkys, although I do like to keep them simple.
After all, I am an Admin at Conky-Pitstop -- Spanish edition.

Conky-Pitstop > http://conky-pitstop.wikidot.com/
Image
:: Mint-Debian-Edition (Fluxbox) :: Debian-Sid (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3475
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: Conky Showoff thread

Postby zerozero on Sun Feb 06, 2011 6:11 pm

tks for sharing vrkalak :)
i will c'4 some of that code for sure :lol:
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky Showoff thread

Postby timmer1240 on Fri Feb 11, 2011 10:52 pm

Heres my conky I love it!
Attachments
Screenshot.png
Screenshot.png (736.79 KiB) Viewed 3869 times
Last edited by timmer1240 on Fri Feb 11, 2011 11:03 pm, edited 1 time in total.
timmer1240
Level 1
Level 1
 
Posts: 49
Joined: Fri Jan 28, 2011 11:45 pm

Re: Conky Showoff thread

Postby Habitual on Fri Feb 11, 2011 11:00 pm

vrkalak wrote:...After all, I am an Admin at Conky-Pitstop -- Spanish edition.

Conky-Pitstop > http://conky-pitstop.wikidot.com/


chimo !?
What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2274
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: Conky Showoff thread

Postby colyn on Sat Feb 12, 2011 8:19 pm

My Linux Mint 10 KDE desktop with conky..

Image
Last edited by colyn on Sun Feb 13, 2011 11:58 am, edited 1 time in total.
User avatar
colyn
Level 6
Level 6
 
Posts: 1238
Joined: Sat Aug 14, 2010 1:37 pm
Location: ¿ǝɯ ǝǝs ɐʎ ʇ,uɐƆ ˙ǝɹǝɥ ʇɥƃᴉɹ ɯ,I

Re: Conky Showoff thread

Postby zerozero on Sun Feb 13, 2011 8:40 am

Hi colyn,
conky into KDE!? 8)
I tried several times and never got it right :?:
I know it needs feh, but after that i'm lost.
Can you give me an idea how you did it? I would love to give it another try
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6492
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky Showoff thread

Postby colyn on Sun Feb 13, 2011 11:44 am

zerozero wrote:Hi colyn,
conky into KDE!? 8)
I tried several times and never got it right :?:
I know it needs feh, but after that i'm lost.
Can you give me an idea how you did it? I would love to give it another try


I have a simple basic conky in my KDE.

Download/install conky-all from synaptic then create a .conkyrc (notice the dot in front) file which you will save in your /home folder. Check out some of the conky files posted here and in http://ubuntuforums.org/showthread.php?t=282353 at the Ubuntu forums to get ideas on creating your .conkyrc file.

Below is my .conkyrc file..

Code: Select all
# Simple Conky by Colyn Goodson
# Created on Aug 20, 2010
#Modified on Aug 22, 2010
###Conky

alignment top_right
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

use_xft yes
xftfont URW Chancery L:size=10
gap_x 10
gap_y 10
minimum_size 300x400
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 95
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes
stippled_borders 8
update_interval 2
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

#This is what you will see on the desktop.
TEXT
${#00ff00}$nodename - $sysname $kernel on $machine

${pre_exec lsb_release -d | cut -f 2| tr "[:upper:]" "[:lower:]"}
$hr
${color #00ffff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}

${color #00ff00}Uptime:$color $uptime
${color #00ff00}RAM:$color $mem/$memmax - $memperc% ${membar 4}
${color #00ff00}CPU:$color $cpu% ${cpubar 4}
${color #00ff00}CPU 0 Temp:$color ${hwmon 0 temp 1}°C ${color #00ff00}CPU Fan: $color ${hwmon 0 fan 1} rpm
${color #00ff00}CPU 1 Temp:$color ${hwmon 0 temp 3}°C ${color #00ff00}Vent Fan: $color ${hwmon 0 fan 2} rpm
${color #00ff00}HDD Temp: $color ${execi 300 nc localhost 7634 | cut -c27-28 ;}°C
${color #00ff00}Processes:$color $processes  ${color #00ff00}Running:$color $running_processes

${color #00ff00}$alignc Drives:

${color #00ff00}Swap:       $color $swap/$swapmax - ${alignr}$swapperc%
${swapbar 4}
${color #00ff00}Boot:       $color ${fs_used /boot}/${fs_size /boot}${alignr}${fs_used_perc /boot}%
${fs_bar 4 /}
${color #00ff00}Root:       $color ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar 4 /}
${color #00ff00}Home:       $color ${fs_used /home/colyn}/${fs_size /home/colyn}${alignr}${fs_used_perc /home/colyn}%
${fs_bar 4 /home/colyn}
${color #00ff00}Networking:

${color #00ff00}Up:${color #ffff00}${alignc}${upspeed eth0}KB/s
${color #00ff00}Down:${color #ffff00}${alignc}${downspeed eth0}KB/s
${color #00ff00}Local I.P. $color ${addr eth0}
User avatar
colyn
Level 6
Level 6
 
Posts: 1238
Joined: Sat Aug 14, 2010 1:37 pm
Location: ¿ǝɯ ǝǝs ɐʎ ʇ,uɐƆ ˙ǝɹǝɥ ʇɥƃᴉɹ ɯ,I

Cool conky configs

Postby timmer1240 on Sun Feb 20, 2011 9:12 pm

For all yoy Conky fans out there here is a link to some cool conky files http://www.techdrivein.com/2011/02/6-aw ... works.html
Heres a screen shot of one of them Im using.
Attachments
Screenshot.resized.png
Screenshot.resized.png (390.19 KiB) Viewed 3773 times
timmer1240
Level 1
Level 1
 
Posts: 49
Joined: Fri Jan 28, 2011 11:45 pm

Re: Cool conky configs

Postby mmesantos1 on Mon Feb 21, 2011 12:52 am

Nice screenie timmer1240 and thanks for the link for the conky. :D
Image
User avatar
mmesantos1
Level 8
Level 8
 
Posts: 2280
Joined: Tue Jan 29, 2008 9:14 pm
Location: VA. USA

Re: Cool conky configs

Postby vrkalak on Mon Feb 21, 2011 1:02 am

Nice Conky.

But, how about adding this to the already existing Conky Show-off thread?

Mint Forum's Conky Show-off Thread > viewtopic.php?f=60&t=30209
Image
:: Mint-Debian-Edition (Fluxbox) :: Debian-Sid (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3475
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Linux Mint is funded by ads and donations.
 
PreviousNext

Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 4 guests