There are several ways to do this, though one would think the easiest thing for ubuntu to do would be to have some easy to access configuration options from within the dash, but that's just crazy talk.
If you're confident using the terminal then I recommend option 1, because the behaviour of the software center will be misleading and confusing.
Option 1 - Use the Terminal (Recommended)
Open the terminal Ctrl+Shift+T
To check what scopes and lenses are currently installed, use dpkg with grep. e.g. list all scopes and lens packages
$ dpkg -l | egrep "(unity-lens-|unity-scope-)"
ii unity-lens-applications ... Application lens for unity
ii unity-lens-files ... File lens for unity
ii unity-lens-gwibber ... Gwibber Lens for unity
ii unity-lens-photos ... Unity Photos Lens
ii unity-lens-shopping ... Shopping lens for unity
Notes on 14.04
14.04 has a great many more lenses and scopes than ever before. Some of which can't removed without destroying the system e.g. unity-scope-home.
These are some of the scopes and lenses installed by default in 14.04:
Scopes and leneses after most of the one's that can be removed have been removed:
$ dpkg -l | egrep "(unity-lens-|unity-scope-)"
ii unity-lens-applications ... Application lens for unity
ii unity-lens-files ... File lens for unity
ii unity-scope-home ... Home scope that aggregates results from multiple scopes
To remove a lens use apt-get remove. e.g. remove the unity shopping lens:
sudo apt-get remove --purge unity-lens-shopping
Option 2 - Use Ubuntu Software Center
Open up Software Center and search for "lens".
Uninstall by selecting the item and clicking "Remove".
IMPORTANT!
You must select Show (count) technical items to show all installed lenses. e.g. The "shopping lens" is a technical item, which personally I think is a little bit cheeky. You know, because you're too dumb to know what that is.
Don't select "Installed" and then search for "lens". This doesn't do what you might expect. It should list any "installed" len's, however it doesn't do that. Probably a bug.
What lenses do I recommend uninstalling?
All of them except for unity-lens-applications and possibly unity-lens-files. Personally I'd be happy a great deal happier without the dash. In place of which was a simple, straight forward, no messing, fast-as-possible, application launcher. I can't belive I'm about to say this, but there's actually something I miss about windows.
Note on 14.04 You can't remove unity-scope-home without remove the unity-desktop and breaking the entire system.
I would imaging that the easiest way of doing this would be to uninstall it, logout and login. It would still be in the cache if you would like to install it again later on.
If you on the other hand do not want to uninstall it and want to just make it go away from the Dash you could just move it out of the /usr/share/unity/lenses folder.
For example let us say you have install the Askubuntu Lense like me.
you would then have a folder inside /usr/share/unity/lenses called extras-unity-lens-askubuntu/. Move that folder somewhere else. Logout. Login.
An example:
cd /usr/share/unity/lenses sudo mv extras-unity-lens-askubuntu/ ..
This would move the askubuntu lense from the lense folder to the parent folder. If you logout/login, the askubuntu lense will be gone.
UPDATE - As aking1012 points out, typing setsid unity will "refresh" Unity with the changes.
There are several ways to do this, though one would think the easiest thing for ubuntu to do would be to have some easy to access configuration options from within the dash, but that's just crazy talk.
If you're confident using the terminal then I recommend option 1, because the behaviour of the software center will be misleading and confusing.
Option 1 - Use the Terminal (Recommended)
Open the terminal Ctrl+Shift+T
To check what scopes and lenses are currently installed, use
dpkg
withgrep
. e.g. list all scopes and lens packagesNotes on 14.04
14.04 has a great many more lenses and scopes than ever before. Some of which can't removed without destroying the system e.g.
unity-scope-home
.These are some of the scopes and lenses installed by default in 14.04:
Scopes and leneses after most of the one's that can be removed have been removed:
To remove a lens use
apt-get remove
. e.g. remove the unity shopping lens:Option 2 - Use Ubuntu Software Center
Uninstall by selecting the item and clicking "Remove".
IMPORTANT!
You must select Show (count) technical items to show all installed lenses. e.g. The "shopping lens" is a technical item, which personally I think is a little bit cheeky. You know, because you're too dumb to know what that is.
Don't select "Installed" and then search for "lens". This doesn't do what you might expect. It should list any "installed" len's, however it doesn't do that. Probably a bug.
What lenses do I recommend uninstalling?
All of them except for
unity-lens-applications
and possiblyunity-lens-files
. Personally I'd behappya great deal happier without the dash. In place of which was a simple, straight forward, no messing, fast-as-possible, application launcher. I can't belive I'm about to say this, but there's actually something I miss about windows.Note on 14.04 You can't remove
unity-scope-home
without remove theunity-desktop
and breaking the entire system.Additional Information
If you're using Ubuntu 13.04 or newer:
In the tweak tool you can use the search tab to modify the relevant settings:
Uninstalling the lenses does not work in 14.04.
What works is:
com -> canonical -> unity -> dash
. I left onlyhome.scope
in there.(From here)
You can also do it without installing dconf-editor. Edit the string with double quotes to your liking:
(From here)
Here's a small package I whipped up if you're comfortable with either setsid unity or logging out
In Ubuntu 14.04LTS
I prefer this method because it doesn't require super-user privileges, thus, it is less likely to break anything.
I would imaging that the easiest way of doing this would be to uninstall it, logout and login. It would still be in the cache if you would like to install it again later on.
If you on the other hand do not want to uninstall it and want to just make it go away from the Dash you could just move it out of the
/usr/share/unity/lenses
folder.For example let us say you have install the Askubuntu Lense like me.
you would then have a folder inside
/usr/share/unity/lenses
called extras-unity-lens-askubuntu/. Move that folder somewhere else. Logout. Login.An example:
cd /usr/share/unity/lenses
sudo mv extras-unity-lens-askubuntu/ ..
This would move the askubuntu lense from the lense folder to the parent folder. If you logout/login, the askubuntu lense will be gone.
UPDATE - As aking1012 points out, typing
setsid unity
will "refresh" Unity with the changes.Just open the terminal and exec this (without sudo):