<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc=" http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>briancarper.net (λ) (Tag: Conky)</title><link>http://briancarper.net/tag/145/conky</link><description>Some guy's blog about programming and Linux and cows.</description><item><title>Conky Goodness</title><link>http://briancarper.net/blog/conky-goodness</link><guid>http://briancarper.net/blog/conky-goodness</guid><pubDate>Sat, 21 Mar 2009 18:52:59 -0700</pubDate><description>&lt;p&gt;I uploaded a new screenshot:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/screenshots/2009/2009-03-21.png&quot;&gt; &lt;img src=&quot;/screenshots/2009/thumbs/2009-03-21.png&quot; alt=&quot;/screenshots/2009/2009-03-21.png&quot; title=&quot;&quot; /&gt; &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The conky with weather pictures in it is stolen from RAMC's conkyrc which you can find on the &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-741686-postdays-0-postorder-asc-start-25.html?sid=89142ae25fd1e651234452124b0a03c1&quot;&gt;Gentoo MB&lt;/a&gt; and also apparently &lt;a href=&quot;http://www.kaivalagi.com/node/2&quot;&gt;here&lt;/a&gt;.  There's a python script there to fetch and display weather info.&lt;/p&gt;

&lt;p&gt;Whoever thought up the idea of making a font that consists of little weather pictures was pretty clever.  Whoever thought up making a font that consists of Linux distro emblems has a bit too much time on his hands.  &lt;/p&gt;

&lt;p&gt;Oddly enough, Unicode itself includes glyphs for weather symbols.  e.g. this is Unicode character 2603: &lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-size: 30pt;&quot;&gt;&amp;#9731;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;If your font supports it, it should show up as a snowman.  If your font doesn't support it, it may show up as an ice cube.&lt;/p&gt;</description></item><item><title>Ubuntu day 3</title><link>http://briancarper.net/blog/ubuntu-day-3</link><guid>http://briancarper.net/blog/ubuntu-day-3</guid><pubDate>Thu, 16 Nov 2006 20:51:50 -0800</pubDate><description>&lt;h1&gt;Good:&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Installing Beryl was brain-dead easy: add a repository and &lt;code&gt;apt-get install beryl&lt;/code&gt;.  About the same as Gentoo I guess, where you'd &lt;code&gt;layman -S whatever-the-repo-name-is&lt;/code&gt; and then &lt;code&gt;emerge beryl&lt;/code&gt;.  Except Ubuntu didn't take 30 minutes to install it, and it was nice and tested and likely to work.  I'm using the Emerald theme called &quot;&lt;a href=&quot;http://gnome-look.org/content/show.php?content=46664&quot;&gt;kind of blue&lt;/a&gt;&quot;.  It's simple and looks nice and most important does NOT look like Vista or OS X.  The only thing I don't like about all of this is having all these third-party repositories; for example I needed yet another one for the beta nvidia drivers.  But I suppose it's not much different or worse than using overlays in Gentoo.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I got lm-sensors working.  Again it was mostly easy; I followed &lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=2780&amp;amp;highlight=lm_sensors&quot;&gt;this guide&lt;/a&gt;, sort of winging it on a few steps.  There are a LOT of guides for ubuntu that assume you know nothing.  If you know anything at all, it's more than enough information, usually.  Anyways other than that it was a matter of &lt;code&gt;apt-get install lm-sensors&lt;/code&gt; and then &lt;code&gt;sensors-detect&lt;/code&gt; which tells you which kernel modules you need.  (I had to run some bash script to create some device nodes first.) I modprobed those myself, and restarted conky, but conky hung without outputting anything.  Turns out the sensors show up a bit differently in Ubuntu than they did in Linux.  I had to change my &lt;code&gt;${i2c temp 1}&lt;/code&gt; to &lt;code&gt;${i2c 9191-0290 temp 1}&lt;/code&gt; in &lt;code&gt;~/.conkyrc&lt;/code&gt;.  Took me a while to figure that one out.  Ubuntu must be detecting more than one i2c device.  Even after getting that right, conky wouldn't work until I killed and restarted X.  Strange.  Works now though.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;Bad:&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;My printer (Canon iP1600) refuses to work in Ubuntu.  Every site I check for every distro says that there is no Linux support for this printer at all (except, ironically, &lt;a href=&quot;http://forums.gentoo.org/viewtopic-p-3640204-highlight-ip1600.html#3640204&quot;&gt;Gentoo&lt;/a&gt;).  But I had it working in Gentoo, unless I've been imagining the past year.  I tried the iP2200 drivers, and a bunch of other things, and nothing works.  I tried some drivers from a site called turboprint; it worked, but it prints a huge logo over top of everything you print and if you want to disable the logo you have to pay $40 for the driver.  Screw that.  I'll probably set up my old 550MHz computer, stick Windows XP on it, set it to load VNC by default, and stick it in a corner somewhere with my printer plugged into it.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>conkyrc</title><link>http://briancarper.net/blog/conkyrc</link><guid>http://briancarper.net/blog/conkyrc</guid><pubDate>Thu, 26 Oct 2006 19:45:44 -0700</pubDate><description>&lt;p&gt;Someone asked me to post my &lt;a href=&quot;/page/conky&quot;&gt;conkyrc&lt;/a&gt; so I did.  I also posted all the Ruby scripts that I use with it.  If you don't mind spawning 6 or 7 Ruby interpreters every couple minutes, you might find them useful, though they are extremely simple.&lt;/p&gt;</description></item><item><title>Conky</title><link>http://briancarper.net/toplevel/conky</link><guid>http://briancarper.net/toplevel/conky</guid><pubDate>Thu, 26 Oct 2006 19:22:53 -0700</pubDate><description>&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/conky/conkyrc&quot;&gt;conkyrc&lt;/a&gt; - Save this as ~/.conkyrc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/conky/check_mail.rb&quot;&gt;check_mail.rb&lt;/a&gt; - Displays a few messages from an IMAP mailbox.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/conky/countdown.rb&quot;&gt;countdown.rb&lt;/a&gt; - Displays the number of days until some date.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/conky/ip&quot;&gt;ip&lt;/a&gt; - Displays your IP address as seen from some server.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/conky/now_playing.rb&quot;&gt;now_playing.rb&lt;/a&gt; - Displays the currently playing artist/song from Amarok.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/conky/weather.rb&quot;&gt;weather.rb&lt;/a&gt; - Displays the weather from Yahoo Weather.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Screenshot:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/conky/conky.png&quot; alt=&quot;Screenshot&quot; /&gt;&lt;/p&gt;</description></item><item><title>Screenshots for October</title><link>http://briancarper.net/blog/screenshots-for-october</link><guid>http://briancarper.net/blog/screenshots-for-october</guid><pubDate>Mon, 02 Oct 2006 10:19:19 -0700</pubDate><description>&lt;p&gt;Click for full-size version.  In the first shot you can see the &quot;wave&quot; effect in progress that occurs any time a window is unmapped; the window sort of waves and dissolves.  Beryl's &quot;Animations&quot; plugin lets you specify animations for mapping, unmapping, focusing, and min/maxing windows.  There are some nice effects too, like the &quot;genie getting sucked into a bottle&quot; thing that OS X has, and many others.  Either these things are new or I never noticed them before.&lt;/p&gt;

&lt;p&gt;Too many effects really does get on your nerves after a while though.  For example you can set windows to &quot;shiver&quot; very slightly when focusing them.  The little bit of feedback does help you notice when a window is being focused, and given a dense collection of windows it can help you notice WHICH window is being focused.  But switching window focus is something that happens way too often, and seeing your windows shivering for the 40,000th time is liable to drive a person insane.&lt;/p&gt;

&lt;p&gt;I'm running KDE here.  My collection of Conky scripts continues to grow.  I plan to upload more of them as I refine them enough that they're usable by anyone other than myself.  My first thought is always &quot;Ew, look how many instances of Ruby I'm spwaning, running all those scripts!&quot;  My second thought is that I have a dual-core processor and 2 GB of RAM.  99% of the time, my CPU is sitting there idling.  I could probably set it to spawn an instance of Ruby every second without noticing any difference.  Three or four every 5 minutes isn't going to kill anyone.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/screenshots/2006/2006-10-01.jpg&quot;&gt;&lt;img src=&quot;/screenshots/2006/thumbs/2006-10-01.jpg&quot; alt=&quot;Oct&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/screenshots/2006/2006-10-01_2.jpg&quot;&gt;&lt;img src=&quot;/screenshots/2006/thumbs/2006-10-01_2.jpg&quot; alt=&quot;Oct&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Yahoo weather for Conky</title><link>http://briancarper.net/blog/yahoo-weather-for-conky</link><guid>http://briancarper.net/blog/yahoo-weather-for-conky</guid><pubDate>Sat, 23 Sep 2006 19:16:02 -0700</pubDate><description>&lt;p&gt;I wrote a Ruby script that parses a Yahoo weather RSS feed and prints it in a form suitable for use in Conky.  This is what it looks like:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/ruby/weather.png&quot; alt=&quot;Weather screenshot&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The source code is &lt;a href=&quot;/ruby/weather.rb&quot;&gt;here&lt;/a&gt;.  Bugs are likely, I wrote it in 20 minutes.  It requires the xml-simple Ruby module, but that's in portage (emerge xml-simple).&lt;/p&gt;</description></item><item><title>Transparent Conky in KDE, part 2</title><link>http://briancarper.net/blog/transparent-conky-in-kde-part-2</link><guid>http://briancarper.net/blog/transparent-conky-in-kde-part-2</guid><pubDate>Fri, 25 Aug 2006 10:21:54 -0700</pubDate><description>&lt;p&gt;I posted earlier about &lt;a href=&quot;/2006/08/05/transparent-conky-in-kde/&quot;&gt;getting Conky to be transparent in KDE&lt;/a&gt;.  Unsetting and resetting the &quot;Show icons on desktop&quot; and &quot;Allow programs in desktop window&quot; options would allow Conky to look correct when transparent.  Otherwise it would be a black box.&lt;/p&gt;

&lt;p&gt;This is OK but it's a hassle to do this every time I restart KDE.  Via various posts on the &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-469257-highlight-conky+kde+black.html&quot;&gt;Gentoo forums&lt;/a&gt; I finally realized WHY this works (I think).  Conky's pseudo-transparency works by reading the root window, and then compositing itself onto that.  The root window is apparently not what normally shows in KDE when you're looking at your desktop background.  KDE apparently draws another window on top of the root window and displays the desktop window there (including your background wallpaper and icons).  Underneath that is the REAL root window, and it's entirely blank by default.  Conky sees that real root window and composites itself on top, resulting in blackness.&lt;/p&gt;

&lt;p&gt;When you tell KDE not to &quot;Show icons on desktop&quot;, apparently KDE then defaults to setting the background of the REAL root window.  So switching this option on and off results in the real root window's appearance matching KDE's &quot;fake&quot; root window.  &lt;/p&gt;

&lt;p&gt;Interestingly, in KDE if you do this:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;Set &quot;Show icons on desktop&quot; to true.&lt;/li&gt;
&lt;li&gt;Set a background.&lt;/li&gt;
&lt;li&gt;Set &quot;Show icons on desktop&quot; to false, then back to true.&lt;/li&gt;
&lt;li&gt;Change your background.&lt;/li&gt;
&lt;li&gt;Start a transparent Conky.&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;Conky will be properly transparent, but it will use the FIRST background you selected, not the second.  This leads me to believe I'm right.&lt;/p&gt;

&lt;p&gt;So the real way to get a nice transparent Conky in KDE is to set the background of the root window using a program like &lt;a href=&quot;http://linuxbrit.co.uk/feh/&quot;&gt;feh&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;ppurka posted in &lt;a href=&quot;http://forums.gentoo.org/viewtopic-t-469257-highlight-conky+kde+black.html&quot;&gt;this thread&lt;/a&gt; a great automated way to do this in KDE:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you're like me and use centered wallpaper, use &lt;strong&gt;--bg-center&lt;/strong&gt; instead.  Incidentally this is the relevant section of my Conky config file:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Mmmm, screenshot</title><link>http://briancarper.net/blog/mmmm-screenshot</link><guid>http://briancarper.net/blog/mmmm-screenshot</guid><pubDate>Tue, 22 Aug 2006 19:37:48 -0700</pubDate><description>&lt;p&gt;A new screenshot:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/screenshots/2006/2006-08-22.jpg&quot;&gt;&lt;img src=&quot;/screenshots/2006/thumbs/2006-08-22.jpg&quot; alt=&quot;2006-08-22&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is KDE/Xgl/Compiz with a Milkish sort of cgwd theme.  Just enough transparency to make things interesting.  Of course Compiz is best when you see it in action.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;http://interfacelift.com/wallpaper/details.php?id=871&quot;&gt;wallpaper&lt;/a&gt; from &lt;a href=&quot;http://interfacelift.com/&quot;&gt;Interfacelift&lt;/a&gt;.  Such a nice wallpaper.  &lt;/p&gt;</description></item><item><title>Transparent Conky in KDE</title><link>http://briancarper.net/blog/transparent-conky-in-kde</link><guid>http://briancarper.net/blog/transparent-conky-in-kde</guid><pubDate>Sat, 05 Aug 2006 16:46:34 -0700</pubDate><description>&lt;p&gt;For the benefit of any Googlers who are looking for how to do this, and for my own benefit when I forget:&lt;/p&gt;

&lt;p&gt;Trying to get Conky to be transparent in KDE would either cause all my icons to disappear, the entire background to turn black, or Conky itself to appear entirely black.  &quot;own_window&quot; and &quot;own_window_transparent&quot; and &quot;own_window_type&quot; in any combination didn't matter.&lt;/p&gt;

&lt;p&gt;The answer is to go to Control Center -&gt; Desktop -&gt; Behavior and check &quot;Show icons on desktop&quot; and &quot;Allow programs in desktop window&quot;.  I was struggling for two days trying to figure this out.&lt;/p&gt;

&lt;p&gt;EDIT: Strangely, I sometimes have to enable / disable this option in KDE, and then restart Conky, and THEN Conky will be properly transparent.  Odd.&lt;/p&gt;</description></item></channel></rss>

