[SOLVED] Trouble getting conky to work at startup with arch linux and gnome 3 installed
ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trouble getting conky to work at startup with arch linux and gnome 3 installed
Hi
I installed conky today and i can get it to work by simply running this command:
Code:
sudo conky -c ~/.conky/conkyrc
It all works fine, but my problem is in making it run at startup.
I have read many forum posts saying to make an executable file and add it to my session under system>preferences>sessions. I do not have those menus! Do I have an incomplete install of gnome? What to do?
Add an entry to gnome-session-properties. You can do this by hitting ALT-F2 and entering "gnome-session-properties". Create a new entry that points to whatever starts conky for you. When you reboot conky should start. If it doesn't have a look in .xsession errors for clues.
Thanks Glennzo, I did that, but the problem persists... It worked with some other things I wanted to run at startup, but not conky...
Besides that, I don't even have an ~/.xsession file. I looked into the ~/.xinitrc and added it in there. The remaining problem, I think, is that I have to delay the starting of the command.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
conky &
xscreensaver &
# exec gnome-session
# exec startkde
# exec startxfce4
exec fluxbox
this is how it works for me..but i wondering why you trying to start conky as sudoers like
I don't know... It doesn't really make a difference, it doesn't work anyway. So that code you posted Raleeha, what do I do with it? I'm sorry, it seems that whanever I feel I'm comfortable with Linux, something new pops up
Here's what works for me. Fedora, from about release 14 up to release 17. My conky configuration is in /etc/conky (/etc/conky/conky.conf). In my home folder is a file I've named .ck.sh. In .ck.sh is the following:
Code:
#!/bin/bash
# Startup script for conky
# Glenn A. Johnson - October 16, 2011
sleep 5
conky -c /etc/conky/conky.conf &
This .ck.sh file is called by adding it to the startup configuration using the method I'd mentioned previously, an entry in gnome-session-properties. As you can see .ck.sh calls /etc/conky/conky.conf. This works reliably for me.
What does your conky.conf look like? Can you post it here?
To raleeha:
I start it with the gdm login manager.
To Glennzo:
It's a big conky.conf file. I could post it, but I don't think that would be any use... I'll make my own .ck.sh file, with my own configuration and I'll give you the results.
:EDIT:
Here's my .ck.sh file:
Code:
#!/bin/bash
# Startup script for conky
# Iraj Eshghi - April 10, 2011
sleep 10
conky -c ~/.conky/conkyrc &
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.