LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
Posts: 454

Rep: Reputation: 47
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: 650

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

Rep: Reputation: 22
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.
 
1 members found this post helpful.
Old 07-25-2010, 12:30 PM   #4
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration