How to make Docky work properly in LXDE and XFCE

Edit: Here is an extension to this post –>

It’s been such a long time since I posted anything in here. Well, I have been busy learning Python 🙂

A couple of days ago, I felt like trying LXDE just to get a feel of LXDE.  Let me tell you that if you are looking for a DE that is blazing fast and very less resource consuming then LXDE is the DE to go for. If you want to go even more lightweight then there are dozens of window managers to choose from. Anyways, getting back to the topic, when I started Docky in LXDE, it started with this warning

Docky warning

Docky warning

and Docky looked pretty ugly without compositing

docky without 3D effects

docky without 3D effects

XFCE users can skip to here.

So, after a quick google search, I found a solution which is pretty simple and will work on XFCE as well. You just gotta install xcompmgr and start it before starting Docky. On Ubuntu, you can do this by typing the following in the terminal:

sudo apt-get install xcompmgr

To test Docky with xcompmgr, start xcompmgr from the terminal by typing:

xcompmgr &

Now, without closing the terminal, start Docky and it should look like what you are used to seeing Docky as!!

Docky in LXDE

Docky in LXDE

Now, adding xcompmgr and docky to the start up applications list on LXDE can be achieved in 2 ways:

Method 1:(will work for both LXDE and XFCE)

To start xcompmgr & docky on startup for all users, open a terminal and go to /etc/xdg/autostart:

cd /etc/xdg/autostart

Next, for xcompmgr create a file and save it with .desktop extension,

sudo vim xcompmgr.desktop

If you are not comfortable with vim, you can choose any editor of your choice

gksu leafpad xcompmgr.desktop

Now, enter the following lines

[Desktop Entry]
Name=Xcompmgr window manager
Comment=Start Xcompmgr window manager at log in
Exec=xcompmgr -n
                               ##You can also put XFCE,Gnome,etc. here##

Now, save and exit.

Next, you have to create a similar file for docky in the same directory i.e. /etc/xdg/autostart.

sudo vim /etc/xdg/autostart/docky.desktop

[Desktop Entry]
Comment=Start Docky at log in
Exec=docky -n
##You can also put XFCE,Gnome,etc. here##

Now, log out and log back in and you should have your Docky.

However, if you want to start xcompmgr and docky for individual users, you have to create xcompmgr.desktop and docky.desktop files in /home/<username>/.config/autostart/ directory.

Method 2: (will work only for LXDE)

To start xcompmgr & docky on start up for all users, open /etc/xdg/lxsession/LXDE/autostart file

sudo vim /etc/xdg/lxsession/LXDE/autostart

and add these two line to this file

@xcompmgr -n

Save and exit, this file and you are done. Log out and log back in.

For individual users, open /home/<username>/.config/lxsession/LXDE/autostart and add the above two lines to this file and that’s it.

But, if you are an XFCE user, then there is a workaround and you don’t have to go through all of this. All you have to do is open Window manager tweaks.

Applications menu -> Settings -> Settings Manager -> Window manager tweaks

Window Manager Tweaks

Window Manager Tweaks

Go to its compositor tab and check Enable display compositing and voila! you are done.

Docky in XFCE

Docky in XFCE

Edit: Here is an extension to this post –>


7 thoughts on “How to make Docky work properly in LXDE and XFCE

  1. Pingback: How to remove docky icon from Docky | insideLOSS

  2. Pingback: LXDE up and running, 3 days now | Regular Expressions

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s