Pages

Sunday, July 1, 2012

Plank: A Lightweight and Fast Dock For Ubuntu 12.04/11.10



Since the introduction of the popular Mac OS X Dock, developers have begun to create similar dock applications compatible with other operating systems (Ubuntu, for example). For Ubuntu, there are many amazing docks for the Gnome desktop such as AWN (Avant Window Navigator), Cairo Dock, Docky, etc. Most users use these docks mainly to decorate their desktop to make it look amazing.



There are many dock applications we have already covered in this blog, but today we will introduce another dock called Plank that was created by the same team that created Docky. What is special in Plank is its lightweight size, simplicity and speed. Another good feature for Plank is the autohide feature that is enabled once you pass a window over it. The only drawback with Plank is the lack of a GUI that allows us to configure it like changing themes, icon size, dock position on the screen, and so on. But, you can do this manually as described below.

You can install Plank on Ubuntu 12.04/11.10 or older with the following commands:

sudo apt-add-repository ppa:ricotz/docky
sudo apt-get update
sudo apt-get install plank

You can now start Plank from the Unity Dash. Once started, you can either pin programs shortcuts by dragging its launcher from the Unity dash into the dock, or open the program and right-click its icon on the Plank dock and select "Keep in Dock":


Using a different themes for Plank is a bit complicated, but here is how to change the default Plank theme:

- Make a backup copy of your default theme so that you can restore it later. This can be done as follows:

cp -r ~/.config/plank/theme/dock.theme dock.theme.pak


cp -r ~/.config/plank/theme/hover.theme hover.theme.pak

- You can now search and download Plank themes from this website. Once you download the archive file, unpack it in the ~/.config/plank/theme/ folder.

- If you want to restore the default theme, you can run now these commands:

cp -r ~/.config/plank/theme/dock.theme.pak dock.theme


cp -r ~/.config/plank/theme/hover.theme.pak hover.theme

To adjust icon size, disable the autohide feature, change dock position, etc. you can edit the settings file with this command:

sudo gedit ~/.config/plank/dock1/settings


For the dock position, the default value is 3, but here are some other options:

0 = left screen (vertical)
1 = right screen (vertical)
2 = upper screen
3 = bottom screen

After you finisih your modifications, save your file and exit, then restart Plank.

Enjoy!

No comments:

Post a Comment