Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to make Unity 2D launcher icons smaller or larger than the default size?

share|improve this question
    
There is a way to reduce the size of icons in the launcher described here: Changing icon size in Unity 2d Ubuntu 12.04. It involves editing .qml files and the editing may have to be redone each time Unity 2D is updated. Very painful, in my opinion. –  user25656 Oct 15 '12 at 6:54
    
Worked fine and painlessly: dedoimedo.com/computers/ubuntu-unity-2d-resize-launcher.html –  Paolo Feb 1 at 14:41

4 Answers 4

11.10

There is a way to make the icons smaller, however the icons are surrounded by backlit that's always 54x54 px and you can't shrink that, it's hard coded. What you can do is this:enter image description here

share|improve this answer
2  
The dynamic width Launcher for Unity2d has seen some attention, but probably won't make it into Precise. answers.launchpad.net/unity-2d/+question/175008 (#24) –  mikewhatever Feb 18 '12 at 13:44
1  
Thanks for the info, mike :) –  me4oslav Feb 18 '12 at 14:32

12.04

Update:

There is a little script to change the size of the Unity-2d launcher items. Download the script from the forums (you need to login to download the file).

Then make the file executable:

chmod +x script.py

Use the script to change the size of the Unity-2D launcher item:

sudo script.py 32

Here, I have used 32 as an example. You can use other icon sizes as you wish.

References:


Original answer:

As of writing this answer, it is not possible to change the size of the launcher icons easily. Georgi's hackish method is the best possible way to change the icon size.

The feature to change the icon size is still not fully developed yet and hopefully, it will land in for 12.04.

See https://answers.launchpad.net/unity-2d/+question/175008.

share|improve this answer
    
This worked for me - though I had to do sudo /script.py 32 (and log out and in to see it). –  Michael Durrant Sep 24 '12 at 13:58
    
...even though I had done the chmod+x It also got reset after an update so may be doing this a few times. –  Michael Durrant Sep 29 '12 at 15:06
    
Each update would overwrite the file you edited. So, you need to modify the icons each time. –  jokerdino Sep 29 '12 at 15:11

The slider for resize icons - Launcher is not available in ubuntu-2d (Unity 2D) session. So I assume you are using Unity 2D.

An ascertainment of which session you use , would be

echo $DESKTOP_SESSION 

command in terminal.

If you want to resize the Launcher - Icons in Ubuntu-2d (Unity 2D) session you must "hack" some items manually.

Carefully read and carefully apply bellow changes.

Open the terminal and do

gksudo gedit /usr/share/unity-2d/shell/Shell.qml 

find this entry

LauncherLoader {
    id: launcherLoader
    anchors.top: parent.top
    anchors.bottom: parent.bottom
    width: 65

and change the width to 52.

Save - close and then again

 gksudo gedit /usr/share/unity-2d/shell/common/IconTile.qml

find the entry

 Image {
    id: icon
    objectName: "icon"
    anchors.centerIn: parent
    smooth: true

    sourceSize.width: 48
    sourceSize.height: 48

and change the sourcesSize.width and sourceSize.height to 32

save - close the file and then again

gksudo gedit /usr/share/unity-2d/shell/launcher/LauncherList.qml

find the section

AutoScrollingListView {
id: list
Accessible.name: objectName

/* The spacing is explicitly set in order to compensate
   the space added by selectionOutline and round_corner_54x54.png. */
spacing: -7

property int tileSize: 54

/* selectionOutline tile size, so AutoScrollingList view can calculate
   the right height. */
property int selectionOutlineSize:  65

and change the titeSize to 40 and selectionOutlineSize to 52.

Save the file and logout - login for changes take effect.

Enjoy and be aware that with an update in the future maybe (not for sure) these values returned to defaults.

This procedure was previously described here in March 2012: Changing icon size in Unity 2d Ubuntu 12.04.

share|improve this answer

You can change icon size in 12.04. Go to the forums and see my post on this in the Desktop Environments forum

http://ubuntuforums.org/showthread.php?t=1943423

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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