LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Conky on Startup (https://www.linuxquestions.org/questions/slackware-14/conky-on-startup-821800/)

CincinnatiKid 07-23-2010 10:10 PM

Conky on Startup
 
I just installed conky. What is the best way to get it to start when X loads? I am using KDE.

bret381 07-23-2010 10:31 PM

you should have an Autostart file in .kde or .kde4 add something like
Code:

#!/bin/bash
sleep 5 && conky

to that file.

Crashbox 07-24-2010 12:04 PM

Just put a softlink to conky in the 'Autostart' directory within .kde directory in your home directory.

on my system, it's:

Code:

/home/crashbox/.kde/Autostart/
to make a softlink use ln. the basic syntax for ln is:

Code:

ln -s target linkname
so if you are in the .kde/Autostart directory, for conky the command would be:

Code:

ln -s /usr/bin/conky conky
See the man-page for ln for details. As brett's code suggests, it's probably a good idea to put a short delay (sleep 5) in there so kde can finish starting up before conky loads. To do that, put brett's code into a text file, name it something like 'conky_load.sh', make it exectuable and save it where you save your scripts.

to make the script exectuable, use the chmod command:

Code:

chmod +x /path/to/text/file/conky_load.sh
On my machine, I save scripts in /opt/scripts. So, from within the .kde/Autostart directory, the code to make the softlink would then be:

Code:

ln -s /opt/scripts/conky_load.sh conky
Hope this helps.

CincinnatiKid 07-25-2010 12:30 PM

Thanks people, both of the suggestions were great. I appreciate your help.


All times are GMT -5. The time now is 09:57 PM.