Tuesday, February 10, 2009

Single on/off switch for conky - Ubuntu Forums

And oldie but goody from the Ubuntu Forums. While I was looking for a command line switch to turn conly on or off, I found this:
[save the file in your home folder, and name it something like Conky-on-off.sh]

Single on/off switch for conky - Ubuntu Forums:
"Single on/off switch for conky Here's a simple script to turn conky on and off. Just copy the script to a empty text file and make it executable(properties>permissions)->




#!/bin/sh

# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else
exec conky

fi



Then just create a single launcher for it(right click panel/desk) and point it to what ever you named your file, add a icon and your all set. I use mine so i can change my .conkyrc to try things and skip using the terminal to kill conky and start conky, clicking on the icon is way faster.
Last edited by kerry_s; October 29th, 2006 at 02:40 AM.."

No comments:

Post a Comment

Thanks for the Comments.