Originally Posted by
arclance
It is probably forked to some generic "conky" process when using "background yes" so the command cannot distinguish it from other conkys.
You can use htop or top to see what the actual "full command" conky is running under is when using "background yes" to see if that is the case.
I never saw this until I fixed it. But it was late and I was off to bed.
But just to show: htop included
All my conkys start with "conky -c /path/to/the/conkyrc"
I played with this a lot yesterday until found my "Oops!", but not before one tweak restarted my session. Now that was an Oops!
The second last line is the fix it was:
here's the working version:
stinkeye
Code:
#!/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
##if pgrep -f "conky -c /media/5/Conky/S11_VSIDO_v9.conkyrc"
##then
## pkill -xf "conky -c /media/5/Conky/S11_VSIDO_v9.conkyrc"
##else
## gnome-terminal -e "conky -c /media/5/Conky/S11_VSIDO_v9.conkyrc"
##fi
## not running in a terminal
## remove: gnome-terminal -e
## Tweaked
if pgrep -f "conky -c $1"
then
pkill -xf "conky -c $1"
else
conky -c "$1"
fi
Terminal output
Code:
sector11 @ sector11
21 Jan 13 | 09:29:06 ~
$ stinkeye /media/5/Conky/S11_VSIDO_v9.conkyrc
18708
sector11 @ sector11
21 Jan 13 | 09:29:48 ~
$ stinkeye /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
Thank you GrouchyGaijin, stinkeye & arclance
Bookmarks