Easy configuring conky with conkyconf

Actually the following trick just worked on my fresh 12.2:

#! /bin/bash

# zypper rm conky
# cd /tmp
# wget http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_**12.1**/x86_64/{conky-1.9.0-37.1.x86_64.rpm,conky-devel-1.9.0-37.1.x86_64.rpm}
# zypper in conky-devel-1.9.0-37.1.x86_64.rpm conky-1.9.0-37.1.x86_64.rpm
# zypper in conkyconf

I now have conky 1.9.0 running fine on this machine.

  • A short-term and immediate solution. :wink:

Just in case you wonder what I did wrong (or if somebody knows how to do it right): http://forums.opensuse.org/english/other-forums/development/open-build-service-obs/478086-conky-1-9-0-12-2-can-not-package-conky-devel-crashes-segfault.html

|What’s new In conkyconf 4.1
|

I changed the conky_parselog function to allow members of the wheel group to display system logs in conky. The previous versions re-parsed the conky variable** ${tail}**, which just followed the file system access rights. Thus only the root user could have viewed system logs. The new function takes the output of

sudo -n tail 2000 $logfile

As you can see on the picture (at the bottom), the log lines only show time, daemon and the first few words of the info in the narrow conky window. But it should be sufficient in most cases to give you an indication that something strange happened and that you should take a closer look at the log.

Here’s the command which generates the ~/.conkyrc that produces the result on the left:

$ conkyconf -wfduNt -g cabc0313 **-n 5 -l /var/log/messages**

Since /var/log/messages is the default log file, this is equivalent to:

$ conkyconf -wfduNt -g cabc0313 -**n 5 -l**

Since “5” is the default number of lines to display, this is equivalent to:

$ conkyconf -wfduNt -g cabc0313 **-l**

The log lines are displayed in LIFO order (most recent line on top). Please refer to previous posts in this thread for the signification and usage of the other options in this example.

sudo in the lua script won’t ask for your password. Thus it has to remember it already. There are 2 possibilities:

either run a command involving sudo just before running conky, such as for example

$ sudo cat /var/log/messages

This is the safest approach.

or disable passwords for members of the wheel group in /etc/sudoers:


## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL

## Same thing without a password
**%wheel ALL=(ALL) NOPASSWD: ALL**

I don’t have problem with this, but many people here will tell you not to do so (which means that I can not seriously recommend this either).|http://imageshack.us/a/img837/7172/conkyconflog.png|

It should be OK now. You need to uninstall conky and tolua++, then install conky from my 12.2 repo. The problem is described and solved in this thread: http://forums.opensuse.org/english/other-forums/development/open-build-service-obs/478086-conky-1-9-0-12-2-can-not-package-conky-devel-crashes-segfault.html#post2492589.

In the meantime, I already made a local build of conky 1.9.1 stable. I will try to build it in OBS.

Nice script, very good job :slight_smile:

One small issue though :

http://i.imgur.com/ocUXHCR.png

As you can see, write diskio for sdb is not aligning quite right, I don’t think it’s in the conky.rc but in lua script, though I’m not sure.

I hope you don’t mind some praise clogging up the thread but this is one sweet script. Thank you for the work.

Couple tiny notes on what I had to do to get going:

As pointed out before you need to have hddtemp enabled in system services to get the -d option

For the US weather you need to get the city code for the weather and not use the zipcode.
Here is how I got the city code.
Go to the site http://www.theweathernetwork.com and enter in your zipcode and it will find your city and save it.
Now look in your browser url bar and it should list something like usXX0000 where XX is your state and then a number code.

Maybe there is an easier way but I missed it.

How do I install this for ubuntu?

How Do I do this in 12.3? I can’t figure out how to install conkyconf.