Feb 14, 2011

Customize Unity-2D Launcher

Before you start here is for Ubuntu 11.10

Tis guide will show you how to remove items, rearrange, change background and icon size in Unity 2D Launcher.
Since i started using Unity 2D mounted drive icon started to bug me because it show all drives (NTFS) and not only flash drives and etc. Unity 2D don't follow GTK theme and don't support skins so you get bored if you look same thing :)
Also i don't use Trash so i don't need icon there :) and i like to Workplaces switcher to be at bottom.



GUI Tool

There is a basic GUI tool for configuring basic thing in Unity 2D Mariano Chavero


Download:
For 32-bit
For 64-bit

Remove and Rearrange

So to make this changes you need to edit one file.
First to be safe make a backup:
sudo cp /usr/share/unity-2d/launcher/Launcher.qml /usr/share/unity-2d/launcher/Launcher.qml-backup
when you screw something just:
sudo cp /usr/share/unity-2d/launcher/Launcher.qml-backup /usr/share/unity-2d/launcher/Launcher.qml

Now for removing items from Launcher
sudo gedit /usr/share/unity-2d/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); = workplaces 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 this items by deleting text line or you can rearrange items by moving lines up or down.

"Drag&Drop"

Drag & Drop have been implemented, to use it click & hold for ~2sec util it "snaps" and then move it to other position.

Because Drag&Drop still is not implemented you can't rearrange application that you have keeped in launcher.
To rearrange theme go to terminal and type:
gconf-editor
in Configuration Editor navigate to desktop > unity > launcher > favorites right click on favorite_list and click edit Key


There in Values select app and use Up and Down keys to rearrange theme.
Click ok to save.

Launcher background

Also in Launcher.qml file you can change things Launcher background image.
To change background just replacebackground.png in /usr/share/unity-2d/launcher/artwork/
or change image patch in Launcher.qml, line 8
source: "artwork/background.png"

Icon Size

To change icon size in Unity 2D Launcher you need to edit LauncherItem.qml located in /usr/share/unity-2d/launcher/


First make backup
sudo cp /usr/share/unity-2d/launcher/LauncherItem.qml /usr/share/unity-2d/launcher/LauncherItem.qml-backup
Then
sudo gedit /usr/share/unity-2d/launcher/LauncherItem.qml
In line 227 and 228 edit width and height (use max 48x48)
Image {
id: icon
width: 48
height: 48
anchors.horizontalCenter: parent.horizontalCenter
NOTE: This will only change icon size in frame, to change frame you need to change more settings in LauncherItem.qml and Launcher.qml but you will also need to manually change size of frame, glow and etc images...

When you are done with all editing type in terminal:
killall unity-2d-launcher
to take effect.

12 comments:

Anonymous said...

Negative factors, including poor nourishment, terrible habits, irregular working out and so on
can deteriorate the state of wellness and consequence in complications with your wellness
now and perfectly in to the future.

my web page ... dumbbell sets

Anonymous said...

By acquiring a apparent conception of such details along
with the facts expected, searching and deciding upon a suitable treadmill is
usually discovered quickly that will match greatest at
your house.

Look at my homepage http://www.getfitnstrong.com/bowflex-dumbbells/bowflex-selecttech-dumbbells-ultimate-home-exercising/

Anonymous said...

Users are determined to finish their workout to the
SM 916 due to reality that trying to slow down may possibly outcome in falling off the stair-climber and interrupting the exercise routine.


my web blog: http://www.getfitnstrong.com/adjustable-dumbbells/weight-sets-sale/

Anonymous said...

One particular from the important pros of resistance bands around
standard absolutely free weights and even a home fitness center like Bowflex, is the truth that it does not require the
usage of gravity or in cases like this fat, to deliver you the resistance required to bolster and construct muscle mass
mass.

my web page - http://www.getfitnstrong.com/bowflex-dumbbells/4-reasons-bowflex-weights...

Anonymous said...

Free of charge weights are a staple in health and fitness systems, Selecttech Dumbbells are among the most innovative breakthroughs in house
health and fitness.

Feel free to visit my website ... dumbbells for sale

Anonymous said...

These weights have great capabilities that could assistance you access and retain your objectives.


Also visit my blog post ... bowflex adjustable dumbbells

Anonymous said...

The more calories you burn off daily, the quicker you are
going to meet your weight-loss goals.

My web page bowflex selecttech 552 adjustable dumbbells

Anonymous said...

Many persons are in search of the magic pill to lose weight.



Also visit my homepage :: SITEMAP

Anonymous said...

These are self titled the "world's very best dumbbell", nevertheless
after spending some time with them, I often agree with their self promotion.


My blog post Rant About Your Boss Here

Anonymous said...

Commonly circuit education necessitates jumping from established to set with out any pauses between,
and except you might have a specialist dumbbell rack this is often near-impossible with a normal
adjustable dumbbell.

my blog - dumbbell set with rack

Anonymous said...

What's up to every one, it's actually a nice for me to pay
a quick visit this web page, it consists of precious
Information.

My web site; questions to ask a girl

Anonymous said...

Sure, but the fear of having a dead list is by far more
persuasive than a guru. There are tens of thousands of ready made information products
with Private Label Rights or Resell Rights available and they often come with ready-made sales copy.
• Once stored, can be taken to anywhere, anytime and in any number to be accessed as per the need.


my site :: site Frank Kern

Post a Comment