| View previous topic :: View next topic |
| Author |
Message |
contraversy n00b

Joined: 28 Apr 2012 Posts: 29
|
Posted: Thu Nov 08, 2012 7:21 pm Post subject: Running Conky in Background/at boot |
|
|
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 |
|
 |
DawgG Guru


Joined: 17 Sep 2003 Posts: 551
|
Posted: Sat Nov 10, 2012 9:45 am Post subject: |
|
|
i ususally run it with
(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 |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Sat Nov 10, 2012 10:39 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
contraversy n00b

Joined: 28 Apr 2012 Posts: 29
|
Posted: Sat Dec 01, 2012 6:49 am Post subject: |
|
|
| 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 |
|
 |
|