You are not logged in.

#1 2010-09-03 16:43:27

hbweb500
Member
Registered: 2010-03-13
Posts: 23

Starting docky in .xinitrc

Posted here is my .xinitrc:

xbindkeys &
nitrogen --restore &
{
    sleep 10
    dbus-launch docky 
}&
exec ck-launch-session fusion-icon

As you can see, I am running a standalone session of Compiz, with docky starting up before hand. The problem is that docky requires compositing, so I have to add that "sleep 10" in there, so that docky waits until after Compiz starts to launch.

While this works, it isn't pretty. Is there a more elegant way to approach this?

Offline

#2 2011-04-13 03:08:51

Crimsonknave
Member
Registered: 2008-09-18
Posts: 23

Re: Starting docky in .xinitrc

Just saw this as I was hacking at the same problem.  Here's what I've got:

.xinitrc

gkrellm &
xfce4-panel &
exec ck-launch-session dbus-launch /usr/local/bin/dbus-progs.sh

/usr/local/bin/dbus-progs.sh

#!/bin/sh
fusion-icon & wmpid=$!
docky &
gnome-do &
wait $wmpid

All the programs that need dbus are inside dbus-progs.sh so they will all know about the dbus session created by dbus-launch.  Plus, to exit you close fusion-icon which you can find in the xfce4-panel notification area.

Offline

#3 2013-12-10 17:56:30

RedNoise
Member
From: Turin, Italy
Registered: 2013-12-10
Posts: 1

Re: Starting docky in .xinitrc

Crimsonknave wrote:

Just saw this as I was hacking at the same problem.  Here's what I've got:

.xinitrc

gkrellm &
xfce4-panel &
exec ck-launch-session dbus-launch /usr/local/bin/dbus-progs.sh

/usr/local/bin/dbus-progs.sh

#!/bin/sh
fusion-icon & wmpid=$!
docky &
gnome-do &
wait $wmpid

All the programs that need dbus are inside dbus-progs.sh so they will all know about the dbus session created by dbus-launch.  Plus, to exit you close fusion-icon which you can find in the xfce4-panel notification area.

Thank you so much mate, this helped me too.

I was going mad without the simplicity of docky!


Red noise has variance growing linearly with time.

Offline

#4 2013-12-10 18:05:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: Starting docky in .xinitrc

Hi RedNoise,

Welcome to Arch Linux.   You responded to a very old thread, so it is unlikely you will get a reply.

In accordance with our policy, I am going to go ahead and close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB