Announcement

Collapse
No announcement yet.

Conky Transparency on KDE4.1

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Conky Transparency on KDE4.1

    [This guide is a patched-together version of various other guides, so credit goes to the original authors. Mainly http://wiki.archlinux.org/index.php/Conky]

    Conky transparency in Kubuntu 8.10 is slightly tricky, so I thought I'd document what worked for me.

    Install conky from Konsole:
    Code:
    sudo apt-get install conky
    The config file for conky is
    Code:
    ~/.conkyrc
    but it might be empty. To check it type kate ~/.conkyrc into a Konsole. A non-empty skeleton config file can found at
    Code:
    /etc/conky/conky.conf
    Use this to overwrite the empty config file if needed.

    Then add the following to the new config file:
    Code:
    double_buffer yes
    own_window_hints below,sticky,undecorated,skip_taskbar
    own_window_transparent yes
    Then type conky into a Konsole to run it. It should appear on your desktop...but with broken transparency. Kill conky by pressing ctrl-C in the Konsole screen. Conky doesn't use "real" transparency..it copies a section of the wallpaper to fake transparency. The problem is, that it copies the wrong wallpaper. (It uses the one that is shown during the login). That needs to be fixed before transparency can work:

    Install feh:
    Code:
    sudo apt-get install feh
    (You need to do it this way since a bug in adept causes it not to list feh even though its there. If you really want to use adept, then open the package manager, not add/remove, type it imlib2 and then it'll list feh )

    The next part depends on how your OS is set up. The "/.kde/" part is shown as "/.kde4/" in pretty much all the conky transparency tutorials out there. It depends on how KDE4 was installed. For kubuntu 8.10:

    Code:
    feh --bg-scale "`grep 'wallpaper=' ~[b]/.kde/[/b]share/config/plasma-appletsrc | tail --bytes=+11`"
    You can also try the same thing with a 4 in it. Just figure out which one doesn't give an error by copying them into a Konsole.

    After you've run the version correct for your setup, you can see if it fixed transparency in conky, by running conky from konsole.

    Now the fix and conky need to be automated on startup. Create a new script file by typing into Konsole. (This will start the nano editor, you can also use Kate though)
    Code:
    nano -w ~/.kde/share/autostart/fehconky
    and write the following into it
    Code:
    #!/bin/bash
    feh --bg-scale "`grep 'wallpaper=' ~/.kde/share/config/plasma-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`"
    /usr/bin/conky &
    (Use ctrl-o to save and ctrl-x to exit nano)

    Make the script executable:
    Code:
    chmod +x ~/.kde/share/autostart/fehconky
    And again, note that it could be "/.kde4/" in the above commands. (e.g. if you upgraded from kde3)

    There is another method similar to this, but then you need to change the script each time you switch wallpapers.

    The positioning & content of conky will still be wrong...but there are enough tutorials out there to fix that.

    HX

    #2
    Re: Conky Transparency on KDE4.1

    > The autorun doesn't seem that start reliably.

    Comment

    Working...
    X