Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Running Conky in Background/at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
contraversy
n00b
n00b


Joined: 28 Apr 2012
Posts: 38

PostPosted: Thu Nov 08, 2012 7:21 pm    Post subject: Running Conky in Background/at boot Reply with quote

Ok so I managed to get conky setup the way I wanted, but in all of my searching I didn't see how to have it run in the background, as this terminal window gets annoying and in the way.

Do I HAVE to set it up using screen to run in the bground?


*edit* I just ran conky -q and althought i had to Ctrl C out of it, conky continued to run this time..
Back to top
View user's profile Send private message
DawgG
Guru
Guru


Joined: 17 Sep 2003
Posts: 599

PostPosted: Sat Nov 10, 2012 9:45 am    Post subject: Reply with quote

i ususally run it with
Code:
conky &

(the backgrounding can be put into .conkyrc).
this way you can run it from an open terminal inside your wm/de, or you can use one of the "Run Command"-tools many of these have, or you can put it in the startup-config of your wm/de.
in my ~/.fluxbox/startup-file there is this line, and in xfce i have bound it to a keyboard-shortcut (since i do not always want to run it.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Nov 10, 2012 10:39 pm    Post subject: Reply with quote

contraversy,

This is how I start mine:
Code:
#!/bin/bash
#
SCREEN=$(env | grep DISPLAY | cut -d: -f2)

if ! [[ $(ps -ef | grep "\-\-config=/home/bill/.conkyrc" ) ]]; then
   sleep 5s
   conky --window-id=$SCREEN --config=/home/bill/.conkyrc&
fi
exit $?

I use LXDE and call the script from ~/.config/lxsession/LXDE/autostart
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
contraversy
n00b
n00b


Joined: 28 Apr 2012
Posts: 38

PostPosted: Sat Dec 01, 2012 6:49 am    Post subject: Reply with quote

Hey thanks a lot! I just opened a terminal, ran it once and it kind of never went away after that, I appreciate all the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum