Conky

  • conkyrc - Save this as ~/.conkyrc.
  • check_mail.rb - Displays a few messages from an IMAP mailbox.
  • countdown.rb - Displays the number of days until some date.
  • ip - Displays your IP address as seen from some server.
  • now_playing.rb - Displays the currently playing artist/song from Amarok.
  • weather.rb - Displays the weather from Yahoo Weather.

Screenshot:

Screenshot

11 Comments

http://gravatar.com/avatar/8e69d423a9f65b5190e8f843bc7067a0.jpg?d=identicon
Athanasius says:

I am using Ubuntu Edgy. How do I make this work in my .conkyrc file? Is there something that I am supposed to download to make the script work?

Feb 03, 2007 12:51 PM PST
http://gravatar.com/avatar/4d84ec3981443dfd9c287e845b60d2ce.jpg?d=identicon
Brian says:

You need Ruby for all of these. And you need the xmlsimple Ruby gem for the weather script. I don't think xmlsimple is in any repos, it would have to be installed via rubygems.

Feb 05, 2007 12:22 PM PST
http://gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e.jpg?d=identicon
Eric says:

I like your conky file. I'm trying to get your weather.rb working but every time I start conky, I get the error /home/eric/weather.rb:3:in `require': no such file to load -- xmlsimple (LoadError) from /home/eric/weather.rb:3

I've got xmlsimple install via ruby gem. Do you have any suggestions?

Apr 19, 2007 08:39 PM PST
http://gravatar.com/avatar/4d84ec3981443dfd9c287e845b60d2ce.jpg?d=identicon
Brian says:

You may have to tell Ruby how to find the gem. Export the environment variable RUBYOPT="rubygems" would do it. That's my first thought.

Apr 24, 2007 10:37 AM PST
http://gravatar.com/avatar/d91126d84b78d8ba3e49081915e364ae.jpg?d=identicon
Bananas says:

Hey, trying to get the mail script working

heres the error i get

/usr/lib/ruby/1.8/net/imap.rb:886:in `initialize': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.8/net/imap.rb:886:in `open'
        from /usr/lib/ruby/1.8/net/imap.rb:886:in `initialize'
        from /usr/local/bin/check_mail.rb:21:in `new'
        from /usr/local/bin/check_mail.rb:21

Whats the problem? Thanks

Jan 23, 2008 07:27 PM PST
http://gravatar.com/avatar/c36050689985a28caaac280293d0775b.jpg?d=identicon
Brian says:

I think it means it can't resolve your mail server's domain. You may have a typo in the server name?

Jan 23, 2008 07:41 PM PST
http://gravatar.com/avatar/c0484b83c34608c15ded7e7730ae5145.jpg?d=identicon
crache says:

Maybe he is trying to use gmail. Is there a way to specify the port number? Thank you for these scripts and config, Simple, yes but very useful.

Jun 04, 2008 05:48 PM PDT
http://gravatar.com/avatar/c0484b83c34608c15ded7e7730ae5145.jpg?d=identicon
crache says:

tried changing the server line to:

imap = Net::IMAP.new('imap.gmail.com', 993, true)

that gave me:

/usr/lib/ruby/1.8/net/imap.rb:983:in `pick_up_tagged_response': TODO (not supported yet) 20if1910406wfi.0 (Net::IMAP::BadResponseError)
        from /usr/lib/ruby/1.8/net/imap.rb:974:in `get_tagged_response'
        from /usr/lib/ruby/1.8/net/imap.rb:1032:in `send_command'
        from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
        from /usr/lib/ruby/1.8/net/imap.rb:1017:in `send_command'
        from /usr/lib/ruby/1.8/net/imap.rb:361:in `authenticate'
        from check_mail.rb:21

This is my first time looking at ruby.. i'm not a programmer :-/

Jun 04, 2008 05:58 PM PDT
http://gravatar.com/avatar/bcd21effa8174ab2f4fd69d448e82e87.jpg?d=identicon
ethan vizitei says:

@crache

that error indicates that gmail does not support an IMAP command that you're trying to use. I can see from your stack trace that you are using the "authenticate" method in this script, and it uses commands that the gmail server doesn't support. Try using the "login" method of net/imap rather than "authenticate", that should take care of it.

Hope that helps.

Jun 27, 2008 04:51 PM PDT
http://gravatar.com/avatar/6882995031c8420e81bb5b6699faca96.jpg?d=identicon
dag729 says:

Hi, I would like to thank you!!! You really saved my evening. I was digging in many sites, where everyone seem'd to be the "guru" about conky, yet everytimes fails... :D Your conkyrc worked instantly: I made my modifications to it (I didn't need the yahoo and mail things, for example) but... it's really wonderful! Thanks, thanks, thanks.

Dec 16, 2009 04:38 PM PST
http://gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e.jpg?d=identicon
Sly says:

If you are connecting to a server that does not require authentication, you need to change the imap.authenticate line to

imap.login('USERNAME', 'PASSWORD')

Feb 27, 2010 12:36 PM PST

Speak Your Mind

This says COWS.

Preview

Commenting Help

Email / Avatar

  • Supply your email address and your Gravatar will be used.
  • I will never email you and your address won't be published.

No HTML allowed!

All HTML is auto-escaped. Use Markdown. Examples:

  • *emphasis* = emphasis
  • **strong** = strong
  • [link](http://foo.bar) = <a href="http://foo.bar">link</a>
  • `code in backticks` = code in backticks
  •     code indented 4 spaces =
    code indented four spaces
  • > Angle-brace quoted text =
    Angle-brace quoted text