10

Here is how my launcher looks:

My latest launcher And here is how I want the launcher to look like:
I want to look like this

Kindly let me know what I can do to have a launcher icon in center as shown in the figure.

  • I assume this is on a task bar. try adding a spacer before the launcher – ravery Sep 14 '17 at 7:51
  • @ravery please guide me how to do that – Jaffer Wilson Sep 14 '17 at 8:01
  • I don't use unity desktop but the basic steps are -- be sure your taskbars are unlocked. right click on the bar to edit it. add a spacer before the menu button. then drag them over. Note: the launcher itself may be hard to grab, click between icons or at the leading edge. – ravery Sep 14 '17 at 8:09
  • @ravery I could not make a right on the task bar or launcher. Hence, I won't be able to make the changes in the task bar. It 16.04. I guess there is not right click for task bar. Can you suggest me if there is any other way around? – Jaffer Wilson Sep 14 '17 at 10:23
  • I do not use unity. I do not know where to unlock them,. but they should be editable – ravery Sep 14 '17 at 10:24
15

Try the following setting changes in dconf-editor (works on 18.04)

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 64
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true

The property you want to modify to keep the dock only as big as its contents is the extend-height. Set it to false

Source https://linuxconfig.org/how-to-customize-dock-panel-on-ubuntu-18-04-bionic-beaver-linux

| improve this answer | |
3

I don't know, how to customize default Unity dock, but I think, It must be really difficult. The only tool I found is unity-tweak-tool, but it behaves very strangely and there isn't setting for icons align.

Fortunately there are many alternative docks. I can show you, how to install and customize Plank (Default dock from Elementary OS) and use it together with default Unity dock.

Plank preview

I tested this on Ubuntu 17.04. I hope that it will work on 16.04 as well.

1. Install

Plank is available from official repositories.

sudo apt install plank

2. Set autostart

Hit Alt + F2 and run command: gnome-session-properties. Than Add and fill inputs:

Name: what you want
Command: plank
Comment: what you want

Now close your session and login again.

3. Add Dash to Plank

Plank as default hasn't Dash launcher so you can add it if you want.

I use xdotool key super command to simulate the Super key press. Read this for more info.

sudo apt install xdotool

Plank works with .desktop files so create one. Open Gedit, insert this:

[Desktop Entry]
Name=Dash
GenericName=Open Ubuntu Dash
Exec=xdotool key super
Terminal=false
Type=Application
Icon=/usr/share/unity/icons/launcher_bfb.png
StartupNotify=false

Check if the icon exists or use your own icon.

Save as Dash.desktop to your home folder. Open nautilus (Files), find this file and in Properties/Permissions allow executing file as program.

Drag file from Nautilus and drop it to Plank dock.

4. Customize

For Plank customization hit Alt + F2 and run command: plank --preferences.

Plank preferences

Finally, I suggest you enable auto-hiding for default Unity dock and set it to left side, because in some cases it may overlap Plank.

| improve this answer | |
0

Can I suggest an alternative ? Install Cairo Dock instead

enter image description here

Try these commands one by one on the terminal

sudo add-apt-repository ppa:cairo-dock-team/ppa

sudo apt-get update

sudo apt-get install cairo-dock cairo-dock-plug-ins

Source :

http://howtoubuntu.org/how-to-install-cairo-dock-3-in-ubuntu

Additional info :

Cairo Dock is available through Ubuntu Software Center as well.

| improve this answer | |
  • Will this not affect the Ubuntu functionality? Because adding this last time had made my ubuntu performance worst. – Jaffer Wilson Sep 14 '17 at 8:02
  • I have personally used it sometime back. Worked fine for me. You can remove it if it's still not working as you intended. There are a few more apps that can add Dock ( Plank, for eg.). Try a search on Google. – user227495 Sep 14 '17 at 8:04
  • @user227495 Is there a repo for xenial as this is the complain I am getting testing this! – George Udosen Sep 14 '17 at 8:12
  • @George there is a launchpad option which you can use launchpad.net/~cairo-dock-team/+archive/ubuntu/ppa – user227495 Sep 14 '17 at 8:16
  • There is no xenial version there @user227495! – George Udosen Sep 14 '17 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.