I'd be remiss if I didn't give everyone the full story or at least a fairly good running break down of what this is and how it came about.
We can all thank GrouchyGaijin for this!
I love it when someone says "Nope, not possible" and the answer is "Oh yea, watch this!" type of thing.
This started when GrouchyGaijin asked stinkeye this question regarding the "start stop conky" script (
ssc.sh)
Cool idea. Thanks for sharing. I have a question though, does the toggle script allow you to kill the conkies one at a time or is it all or nothing?
stinkeye responded:
Scripts been around a while. Not my idea.
All or nuttin'. Go hard or go home. 
A little while later GrouchyGaijin came back with:
For what it is worth, I wrote a script that will find the PID of a particular conky, then kill it.
I'm sure this could be done more efficiently. But this works on my system.
#!/bin/bash
##This is something like the 5th script I've ever written ##
var1=$(ps xu | grep calendar-conky | grep -v grep | awk '{ print $2 }')
echo "$var1"
kill $var1
Change calendar-conky to the name of your conkyrc file.
Then, make a launcher, put it in a quick list or whatever.
arclance piped up:
Why not use?
pkill -f "conky.*-c.*calendar-conky"
That will kill conky process running with the "calendar-conky" .conkyrc.
It should also not kill certain text editors if you have your .conkyrc open in them.
Can you see where this is going?
After a discussion between arclance and stinkeye, about it not working with a conky in a terminal stinkeye has a version that will work with his demo conky in a terminal:
Could't find a solution so I added a sed command to change
background yes
to
background no
in any pasted in configs.
#!/bin/bash
## click to start, click to stop
if pgrep -f "conky -c /home/glen/conky/configs/demo-conkyrc"
then
pkill -xf "conky -c /home/glen/conky/configs/demo-conkyrc"
else
[B]sed -i 's/background yes/background no/g' /home/glen/conky/configs/demo-conkyrc &[/B]
gnome-terminal -e "conky -c /home/glen/conky/configs/demo-conkyrc"
fi
From GrouchyGaijin's "oh yea, watch this post!" I started playing ... incorporating things as it happened.
All my conkys start with "conky -c /path/to/the/conkyrc", I don't run conkys in a terminal, start them yes, run them no!
I played with this a lot yesterday getting "ERROR" here an
"Oops!" there, but not before one tweak restarted my entire session.
Now that was an Oops!The second last line is the fix it was:
"conky -c $1"
Here's the 'first' working version, - "SUPER" script
that requires two clicks, or twice in a terminal:
ggsia <<-- the bash script for
Grouchy
Gaijin,
St
inkeye and
arclance
#!/bin/bash
## Original idea by: GrouchyGaijin
## This idea by: Stinkeye - Jan 2013
## With another tweak by: arclance
## Final tweak by: Sector11
## click to start, click to re-start
if pgrep -f "conky -c $1"
then
pkill -xf "conky -c $1"
else
conky -c "$1"
fi
Terminal output
sector11 @ sector11
21 Jan 13 | 09:29:06 ~
$ ggsia /media/5/Conky/S11_VSIDO_v9.conkyrc
18708
sector11 @ sector11
21 Jan 13 | 09:29:48 ~
$ ggsia /media/5/Conky/S11_VSIDO_v9.conkyrc
Conky: forked to background, pid is 19627
sector11 @ sector11
21 Jan 13 | 09:29:50 ~
$
Conky: desktop window (260) is root window
Conky: window type - normal
Conky: drawing to created window (0x1c00001)
Conky: drawing to double buffer
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 71036 100 71036 0 0 81086 0 --:--:-- --:--:-- --:--:-- 99k
not checking for alerts
processing complete
sector11 @ sector11
21 Jan 13 | 09:30:06 ~
$
Stopped it and started it like it was meant to do!
but it took one to kill it, one to start it
Thank you GrouchyGaijin, stinkeye & arclance
I didn't stop there ... I have another version of ssc.sh that uses "exit" .... hmmmmmmmmm!!!
So here it is, the new improved
ggsia that is even better, this is for
"conky addicts", because sometimes just "saving a conky" isn't enough, you need to kill it and restart it!
If you are developing a conky and- have not started it yet, this will start it.
- if it is already running, this script will kill it and restart it 2 seconds later
ggsia - Super script #2#!/bin/bash
## Original idea by: GrouchyGaijin
## This idea by: Stinkeye - Jan 2013
## With another tweak by: arclance
## Final tweak by: Sector11
## click to start, click to stop & re-start
if pgrep -f "conky -c $1"
then
pkill -xf "conky -c $1"
(sleep 2s && conky -c "$1") &
exit
else
conky -c "$1"
exit
fi
Nice stuff guys!stinkeye points out a weakness of the above above a question:
HA!!!! jedi has compition!
Along comes: CapMan
Hi Sector11,
just a bit confused as to what the $1 variable is
and how to use the script.
Do I just add the path to a conkyrc as a variable to the script?
It may appear I know what I'm doing but I'm essentially a copy and paste man.
CapMan 
$1 for a bash script is a command line variable.
stinki#!/bin/bash
echo $1 $2
sector11 @ sector11
21 Jan 13 | 11:52:44 ~
$ stinki something
something
sector11 @ sector11
21 Jan 13 | 11:52:46 ~
$ stinki something else
something else
sector11 @ sector11
21 Jan 13 | 11:52:50 ~
$ stinki Hi stinkeye
Hi stinkeye
sector11 @ sector11
21 Jan 13 | 11:54:16 ~
$
To continue: Yea, me too, I gotta use that line, CapMan sounds like a superhero!
Maybe change it to C&PDude so as not to interfere with any © you may have.
The top of 90% of my conkys have something like this:
# killall conky && conky -c /media/5/Conky/S11_VSIDO_v9.conkyrc &
I copy that line - less the hash - to kill all conkys and restart the one I'm working on. BUT it does what you said a while back:
All or nuttin'. Go hard or go home. 
So now at the top of my conkys I'll do:
# ggsia /media/5/Conky/S11_VSIDO_v9.conkyrc
then I'll pull a
CapMan in the terminal
sector11 @ sector11
21 Jan 13 | 11:25:16 ~
$ ggsia /media/5/Conky/S11_VSIDO_v9.conkyrc
Like I said earlier in this post,
- if the conky is not running that script will start it,
- if it is running, it will kill it, wait 2 seconds and restart it.
Perfect for editing!Now to do a search and replace on "all files" in my conky directories:
Search: "# killall conky && conky -c"
Replace: "# ggsia"
Hmmmm, that will take a while, I'll probably have to watch a movie.
Thanks GrouchyGaijin ǝʎǝʞuıʇs sʞuɐɥʇ & arclance