How can I remove the Workspace Switcher launcher from the Unity dock?
8 Answers
- To disable workspaces completely
- See @fossfreedom answer https://askubuntu.com/a/211169
To just remove the icon but still preserve workspaces
Open the terminal and execute:
gsettings get com.canonical.Unity.Launcher favorites
the output will be something like,
['application://nautilus.desktop', 'application://chromium-browser.desktop', 'application://ubuntu-software-center.desktop', 'application://ubuntuone-installer.desktop', 'application://ubuntu-amazon-default.desktop', 'application://UbuntuOneMusiconeubuntucom.desktop', 'application://gnome-control-center.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']
To remove the workspaces icon from the dock you should just take out
'unity://expo-icon'
from that list. Taking it out, for this case the command should be:gsettings set com.canonical.Unity.Launcher favorites "['application://nautilus.desktop', 'application://chromium-browser.desktop', 'application://ubuntu-software-center.desktop', 'application://ubuntuone-installer.desktop', 'application://ubuntu-amazon-default.desktop', 'application://UbuntuOneMusiconeubuntucom.desktop', 'application://gnome-control-center.desktop', 'unity://running-apps', 'unity://devices']"
(Don't forget the double quotes for the list on
gsettings set
)
Currently I'm using eight workspaces with the help of Unity Tweak Tool. I like to have multiple workspaces, but didn't like the unremovable Unity Launcher icon that much, even more because it could only resemble four workspaces while I was using eight instead.
-
11This did exactly what I wanted to do. The other answers disable the desktop-switching completely, while this answer only removes the icon and I'm still able to use the feature itself. – Donarsson Sep 07 '13 at 11:12
-
For what versions should this be working? – Bruno Pereira Sep 07 '13 at 17:44
-
@BrunoPereira, personally, I could only use it on 13.04. – oblitum Sep 07 '13 at 18:12
-
1This is the most logical, straight-forward approach, and it works! (using Ubuntu 14.04) – dayuloli May 31 '14 at 01:49
-
you have an extra `. at the end of the third code piece – Max Jan 11 '15 at 06:29
-
You did try this and it preserved the ability to switch workspaces using the keyboard, right? – It's Willem Apr 29 '15 at 18:03
-
@It'sWillem yes, doing that all day. – oblitum Apr 29 '15 at 18:16
-
The thing you said to remove is not there. Perhaps because I switch workspaces avidly with the arrow keys already, or because it is not !#>)$?! – It's Willem May 01 '15 at 02:42
-
*13.04. . . . . . – It's Willem May 01 '15 at 02:42
-
Am I the only one here who doesn't need the icon because of hotcorners rather than keyboard shortcuts? – Hitechcomputergeek Dec 15 '15 at 05:04
For 14.04
Drag the undesirable icon on the trash can.
For 13.04
By default, the workspace-switcher is not enabled in the Launcher. This setting is toggleable via the Appearance - Behaviour tab in System Settings
Untick the option shown in the following picture to remove the workspace-switcher icon.
12.10
If you are prepared to work with just one virtual desktop (i.e. no additional workspaces) then the following will work for 12.10 and later.
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 1 gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 1
Before:
After:

- 172,746
-
3this actually worked for me on 12.10 and seems a crap load easier than the top answer – Eric Nemchik Jan 11 '13 at 13:50
-
8Your solution for 13.04 isn't exactly a solution. Disabling workspaces will completely disable them, not just remove the icon from the launcher. Some people are going to want to leave workspaces enabled without the icon in the launcher. – Seth Sep 17 '13 at 19:14
-
Agree with @Seth - if you untick the "Enable workspaces" option it seems to reset your workspace preferences (for example the number of panels you have horizontally and vertically). I'm just looking to remove the icon, since Hotcorners is enough for me. – halfer Apr 04 '14 at 07:03
-
1
-
-
1Is there any way to get it back in 14.04 after dragging it to the trash can though. – xji Feb 20 '16 at 09:36
-
1In 14.04, these steps do not disable the feature on my box. The short cut keys Ctrl-Alt-Left/Right Arrow still move around to different workspaces. Even after disabling it in the System Settings > Appearance. – Ed J Mar 10 '17 at 07:21
For Ubuntu 11.10 & Ubuntu2D
Edit the file /usr/share/unity-2d/launcher/Launcher.qml
with your favorite text editor, ie:
sudo nano /usr/share/unity-2d/launcher/Launcher.qml
For Ubuntu 12.04 & Ubuntu2D
Edit the file /usr/share/unity-2d/shell/launcher/Launcher.qml
with your favorite text editor, ie:
sudo nano /usr/share/unity-2d/shell/launcher/Launcher.qml
Locate these lines
Component.onCompleted: {
items.appendModel(bfbModel);
items.appendModel(applications);
items.appendModel(workspaces);
items.appendModel(devices);
shelfItems.appendModel(trashes);
}
And change them to
Component.onCompleted: {
items.appendModel(bfbModel);
items.appendModel(applications);
/* items.appendModel(workspaces);*/
items.appendModel(devices);
shelfItems.appendModel(trashes);
}
Ubuntu
Unfortunately the desktop switcher is hard coded to unity
and cannot be removed without making source code modifications.
Make sure you have the package dpkg-dev
installed
sudo apt-get install dpkg-dev
To modify the code and compile it your self you need to do the following
mkdir ~/code
cd ~/code
mkdir build
cd build
apt-get source unity
cd unity*
Open plugins/unityshell/src/LauncherController.cpp
with your favorite text editor, ie:
nano plugins/unityshell/src/LauncherController.cpp
Locate the lines
num_workspaces_ = WindowManager::Default()->WorkspaceCount();
if (num_workspaces_ > 1)
{
InsertExpoAction();
}
Change them to
/*num_workspaces_ = WindowManager::Default()->WorkspaceCount();
if (num_workspaces_ > 1)
{
InsertExpoAction();
}*/
Build the package
sudo apt-get build-dep unity
debuild -us -uc
Wait for it to finish and install when done
cd ..
sudo dpkg -i unity*.deb libunity*.deb netbook*.deb

- 11,720

- 73,643
-
1Do not use the method with Unity 2D 12.04. Afterwars you cant even start unity. I had to go into another desktop-enviroment and revert the changes. – Paul Woitaschek Jun 02 '12 at 18:57
-
sorry but, for Unity, I should warn people are better of checking the other answers. – oblitum Apr 27 '13 at 14:15
-
1
-
@BrunoPereira, check my answer for example, I suspect the
gsettings
trick work in several versions. No need for compiling stuff, and also, that's an issue with your answer because you assert there's no other way out but patching. – oblitum May 03 '13 at 16:56 -
Thanks for the solution! Other people here say it breaks Unity2D. Just make sure you did it right. The first time I tried, I broke Unity2D too because I addicently swapped the last
*
and/
. After fixing it, it worked. (12.04) – jobukkit Sep 12 '13 at 15:02 -
Cool @Jop, you saved me the time of installing 12.04 to test an answer I wrote almost 2 years ago :) (thx) – Bruno Pereira Sep 13 '13 at 06:02
For Ubuntu 11.04/11.10/12.04 (does not work in Unity 2D):
Install
Compiz Config Settings Manager
from the Ubuntu Software Center
Open Compiz Config Settings Manager from Dash
Goto General Options and Desktop Size tab
Change Horizontal Virtual Size to '1', the Vertical Virtual Size can be any number.
Restart Unity by opening Run Command (Alt-F2) and typing
unity
11.04
Currently there's a handy little bug in unity that allows you to do this. Open a up a terminal and run 'gnome-panel'. Once gnome panel is running, add the 'workspace switcher' applet to the panel. Open up the workspace switcher preferences and select 1 column and 4 rows. Log out and back into unity, and viola! The workspace switcher is missing now.
Yes I know, it's a somewhat annoying way of removing it if you use workspaces, but it's the only way i know of right now..
To get the Unity launcher switcher back, simply open the gnome-panel in terminal again, and go back to a 2 X 2 grid. Logout and log back in.
12.04
This is now easy, thanks to an addition to Isaac Joseph's lovely Unity Revamped (also brings back dodge-windows and dodge-active-window and gives a few other options).
Add the repository with your software manager of choice or:
sudo add-apt-repository ppa:ikarosdev/unity-revamped
This is now an alternative source of unity, that'll report itself as just slightly ahead of the canonical one in version. Upgrade and you'll have this new version:
apt-fast update && apt-fast dist-upgrade
Or if you don't use apt-fast, then:
sudo apt-get update && sudo apt-get dist-upgrade
Or just use the software updater.
Log out and in, and go to ccsm. The Ubuntu Unity Plugin will now have, on the "experimental" tab an option labelled 'Show "Expo Icon" in the launcher', that's enabled by default. Disable this and the icon is gone.
Disabling the icon doesn't disable the Super+S binding, should that be your preferred way of switching workspaces.
12.04
Install MyUnity from Software Center.
Open it, go to Desktop, decrease (move the bar to the left) for H Desktop and V Desktop, both to minimal.
Restart.

- 6,834
For 14.04 and newer LTS releases with Unity.
Launch Settings->Appearance and check the boxes as shown below.
The launcher icon to acces the switcher via mouse looks like this:

- 36,023
- 25
- 98
- 183