Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-09-15 11:47:25

New Member
Registered: 2013-08-31
Posts: 5

Small Improvement to conkywonky Script ("Restart Conky" in Menu)

I just wanted to make a quick post here because as I've been configuring conky, it sometimes doesn't reload properly after saving the config file, so I use the "restart conky" menu option to reload it. I've noticed, though, that the script it calls, /usr/bin/conkywonky, likes to continue running in the background, so I ended up with several uselessly-running conkywonky instances. So I made a small modification to the conkywonky script to make it wait 5 seconds and then terminate itself to prevent this, leaving you with only conky running. Nothing major to be sure, but I figured I'd share here anyway so that I can feel like I made a positive contribution big_smile

# conkywonky
# ----------
# Many moons ago, Conky did not automatically restart when changes were
# made to its config files. This script was used to restart it. It does not
# really serve any purpose now, but I like the name and some people may still
# be using/referencing it.

if [ "$(pidof conky)" ]; then
    killall conky
    conky -q &
    (sleep 5 && killall conkywonky)
    conky -q &
    (sleep 5 && killall conkywonky)


Be excellent to each other!

#2 2013-09-16 01:02:37

#! CrunchBanger
From: New York City
Registered: 2013-08-29
Posts: 141

Re: Small Improvement to conkywonky Script ("Restart Conky" in Menu)

Thank you!

Had the same problem. Had no idea what the hell was going on.


#3 2013-09-17 08:21:20

#! Member
Registered: 2012-06-11
Posts: 51

Re: Small Improvement to conkywonky Script ("Restart Conky" in Menu)

I added this to my conkywonky. Id never noticed there was a problem, but Im always restarting conky after changing my resolution and conky is in the wrong place.


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo