LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-23-2010, 10:10 PM   #1
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 395

Rep: Reputation: 33
Conky on Startup


I just installed conky. What is the best way to get it to start when X loads? I am using KDE.
 
Old 07-23-2010, 10:31 PM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 648

Rep: Reputation: 78
you should have an Autostart file in .kde or .kde4 add something like
Code:
#!/bin/bash
sleep 5 && conky
to that file.
 
Old 07-24-2010, 12:04 PM   #3
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 21
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.
 
Old 07-25-2010, 12:30 PM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 395

Original Poster
Rep: Reputation: 33
Thanks people, both of the suggestions were great. I appreciate your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Conky Ubuntu Lucid Theme - Among The Easiest to Install Conky Theme in Ubuntu LXer Syndicated Linux News 0 07-05-2010 04:11 PM
Conky and wl.ko exvor Linux - General 8 01-07-2010 07:16 PM
conky display isssue on Gnome desktop when initiated at startup sd|| Linux - Software 3 11-06-2009 05:21 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration