Disabling multiple workspaces:
- Using GConf Editor, change the value of the
/apps/metacity/general/num_workspaces
to 1
.
Removing the Workspace Switcher from the Launcher:
Remove and Rearrange
So to make this changes you need to edit one file.
First to be safe make a backup:
(for 11.04 & 11.10)
sudo cp /usr/share/unity-2d/launcher/Launcher.qml /usr/share/unity-2d/launcher/Launcher.qml-backup
when you screw up something just:
sudo cp /usr/share/unity-2d/launcher/Launcher.qml-backup /usr/share/unity-2d/launcher/Launcher.qml
(for 12.04)
sudo cp /usr/share/unity-2d/shell/launcher/Launcher.qml /usr/share/unity-2d/shell/launcher/Launcher.qml-backup
when you screw up something just:
sudo cp /usr/share/unity-2d/launcher/Launcher.qml-backup /usr/share/unity-2d/launcher/Launcher.qml
Now for removing items from the Launcher:
(for 11.04/11.10):
gksu gedit /usr/share/unity-2d/launcher/Launcher.qml
scroll down to line 104, there you will see:
(for 12.04)
gksu gedit /usr/share/unity-2d/shell/launcher/Launcher.qml
scroll down to line 104, there you will see:
Component.onCompleted: {
items.appendModel(applications);
items.appendModel(workspaces);
items.appendModel(visiblePlaces);
items.appendModel(devices);
shelfItems.appendModel(trashes);
items.appendModel(applications);
= applications in launcher
items.appendModel(workspaces);
= Workspace Switcher
items.appendModel(visiblePlaces);
= Files & Folders and application button.items.appendModel(devices);
= mounted drives (NTFS) + flash drives etc.
shelfitems.appendModel(trashes);
= Trash
You can remove these items by deleting their lines or you can rearrange items by moving lines up or down.
Source
It should be noted that the second step is editing actual code and not a configuration file and thus any changes will be overwritten the next time you install a unity-2d
update.