Howto replace all Gnome 3 panels with the AWN dock

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
Kilz
Level 4
Level 4
Posts: 200
Joined: Mon Apr 04, 2011 8:00 pm

Howto replace all Gnome 3 panels with the AWN dock

Post by Kilz » Sat Nov 12, 2011 8:11 pm

Let me start out with a disclaimer. This howto only deals with how to replace the panels in Gnome 3 with the Avant window manager dock. It does not provide every little step on what you should have in that dock, that is up to you as Avant is very configurable.

The question some may ask is why replace the panels with a dock? Well for me Gnome 3 was a disaster, and I like an organized desktop with some elegance. Gnome 3 as Mint implements it still has some rough edges imho.
1. You cant hide the panels.
2. There is just to much going on in the panels.

Here is what My desktop running Mint 12 looks like

Image
I can launch what I want, I have a direct menu, the dock hides when applications are full screen, and it even has some animation that I think looks nice.

So lets get started. We are going to set up another session, this way if it isnt for you, you can just log back into the normal session and remove the dock.

To start open a terminal and copy paste in the following command to install the dock and plugins

Code: Select all

sudo apt-get install avant-window-navigator awn-applets-all python-awn-extras alacarte compiz
Put in your password and let it install then paste the following

Code: Select all

gksudo gedit /usr/share/xsessions/dock.desktop
The gedit text editor will start, paste in the following into the text editor and then save the file.

Code: Select all

[Desktop Entry]
Name=dock
Comment=This session logs you into GNOME with only a dock
Exec=gnome-session --session=dock
TryExec=gnome-session
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gnome-session-3.0
Close Gedit and paste in the following into the terminal

Code: Select all

gksudo gedit /usr/share/gnome-session/sessions/dock.session
Paste in the following into the editor when it opens and save the file.
If you dont want effects enabled by default replace compiz with metacity in the DefaultProvider-windowmanager line.

Code: Select all

[GNOME Session]
Name=dock
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;
DefaultProvider-windowmanager=compiz
DefaultProvider-notifications=notify-osd
DesktopName=GNOME
Now you can close the terminal. Open up the file manager and go to /usr/bin and copy the avant-window-navigator executable to the desktop, this is in case it doesnt start when you enter the dock only session.
Click on it and Avant will start. Right click on the dock and not on an icon and select Dock Preferences. When the preferences click on the preferences icon at the top. In that tab click the check box for on Start Awn Automatically and agree when asked if it can add a file. I suggest that you select Intellihide from the Behavior drop down, Squish from the Icon effects drop down, and Style of 3d. You can also put the dock anyplace on the edges with the location drop down.
Next click on the applets icon at the top, drag any applets you want into the Active Applets box. I have Cairo menu, spacer, taskmanager, Cairo clock, Volume control, Notification area, garbage, and Quit-logout applets on mine. But there is no right or wrong additions, its all up to you. Be aware that the notification area may crash because there is already a notification area on your desktop, but when you log into the dock only it will be fine. You can use the main menu editor to make it exactly as you want, you will find it in other after reboot.

Now , log out , select Dock Only from the Sessions, and log in.

Enjoy

Kilz
Last edited by Kilz on Sat Nov 19, 2011 11:22 pm, edited 3 times in total.
I trust Microsoft about as far as I could comfortably spit a dead rat
Ubuntu is my past, it is no longer the place it once was, on its forums you are no longer free to voice your opinion.
64bit Linux Powered

Aethyr
Level 2
Level 2
Posts: 72
Joined: Wed Apr 06, 2011 6:05 am

Re: Howto replace all Gnome 3 panels with a dock

Post by Aethyr » Wed Nov 16, 2011 5:38 am

Since you redirected me to this thread, I thought I'd give my 2 cents

1st of all: for Cairo Dock users, in Mint 12, these files are created automatically along with a fallback session, so all you have to do to enjoy it is log out, choose Cairo-Dock session, and log back in. It uses a gnome 3 session with compiz and Cairo Dock by default.

2nd: I tried creating your version from scratch and it didn't work for me, when I logged in it gave an error message "Couldn't start session: dock". Any idea what I might've gone wrong?
Arch user now. Inactive for indefinite amount of time.

User avatar
Kilz
Level 4
Level 4
Posts: 200
Joined: Mon Apr 04, 2011 8:00 pm

Re: Howto replace all Gnome 3 panels with a dock

Post by Kilz » Wed Nov 16, 2011 9:37 am

I think its possible that you dont have compiz installed. I cant remember now if compiz was already installed or not. I have also simplified the naming in the 2 session files.
I trust Microsoft about as far as I could comfortably spit a dead rat
Ubuntu is my past, it is no longer the place it once was, on its forums you are no longer free to voice your opinion.
64bit Linux Powered

Aethyr
Level 2
Level 2
Posts: 72
Joined: Wed Apr 06, 2011 6:05 am

Re: Howto replace all Gnome 3 panels with a dock

Post by Aethyr » Wed Nov 16, 2011 10:45 am

Well, it works with the simplified files, but I also installed the compiz extra plugins. My guess is you need a full compiz for it to work. Anyway, it's great work :mrgreen:
Arch user now. Inactive for indefinite amount of time.

User avatar
Anakinholland
Level 3
Level 3
Posts: 145
Joined: Sun Oct 30, 2011 8:09 am

Re: Howto replace all Gnome 3 panels with a dock

Post by Anakinholland » Sat Nov 19, 2011 12:29 pm

Cheers for this matey!! :D

Haven't taken the plunge yet, but this manual is definitely in my todo-list!

Anakin
Please Edit your initial post title and add [SOLVED] once your question is resolved.

User avatar
kelebek333
Level 3
Level 3
Posts: 141
Joined: Sat Jun 25, 2011 11:57 am

Re: Howto Create AWN Session on Linux Mint 12

Post by kelebek333 » Sat Nov 19, 2011 9:07 pm

Alternative : Howto Create AWN Session on Linux Mint 12

Create 4 files named awn-dock.desktop, awn-dock-fallback.desktop, awn-dock.session, awn-dock-fallback.session as following way then install to AWN

..........................................................................

Run following code to create awn-dock.desktop file on /usr/share/xsessions/ directory.

Code: Select all

gksudo gedit /usr/share/xsessions/awn-dock.desktop
Select and paste all of following codes and save awn-dock.desktop file

Code: Select all

[Desktop Entry]
Name=AWN (with Gnome and effects)
Comment=This session logs you into GNOME with AWN-Dock and with graphical effects.
Exec=gnome-session --session=awn-dock
TryExec=gnome-session
Icon=
Type=Application

..........................................................................

Run following code to create awn-dock-fallback.desktop file on /usr/share/xsessions/ directory. (For safe mode)

Code: Select all

gksudo gedit /usr/share/xsessions/awn-dock-fallback.desktop
Select and paste all of following codes and save awn-dock-fallback.desktop file

Code: Select all

[Desktop Entry]
Name=AWN (with Gnome and without effects)
Comment=This session logs you into GNOME with AWN-Dock and without any graphical effect.
Exec=gnome-session --session=awn-dock-fallback
TryExec=gnome-session
Icon=
Type=Application

..........................................................................

Run following code to create awn-dock.session file on /usr/share/gnome-session/sessions/ directory.

Code: Select all

gksudo gedit /usr/share/gnome-session/sessions/awn-dock.session
Select and paste all of following codes and save awn-dock.session file

Code: Select all

[GNOME Session]
Name=AWN-Dock Session
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;
DefaultProvider-windowmanager=compiz
DefaultProvider-panel=avant-window-navigator
FallbackSession=awn-dock-fallback
DesktopName=GNOME

..........................................................................

Run following code to create awn-dock-fallback.session file on /usr/share/gnome-session/sessions/ directory. (For safe mode)

Code: Select all

gksudo gedit /usr/share/gnome-session/sessions/awn-dock-fallback.session
Select and paste all of following codes and save awn-dock.session file

Code: Select all

[GNOME Session]
Name=AWN-Dock Session fallback (Safe Mode)
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;
DefaultProvider-windowmanager=metacity
DefaultProvider-panel=avant-window-navigator
DesktopName=GNOME
Now you can select AWN session from Lightdm


..........................................................................

Run the following codes to get back.

Code: Select all

sudo rm -rf /usr/share/xsessions/awn-dock.desktop
sudo rm -rf /usr/share/xsessions/awn-dock-fallback.desktop
sudo rm -rf /usr/share/gnome-session/sessions/awn-dock.session
sudo rm -rf /usr/share/gnome-session/sessions/awn-dock-fallback.session

Image

Image

Image

User avatar
Kilz
Level 4
Level 4
Posts: 200
Joined: Mon Apr 04, 2011 8:00 pm

Re: Howto replace all Gnome 3 panels with a dock

Post by Kilz » Sat Nov 19, 2011 10:00 pm

Exactly what is the difference in your session with effects and the instructions that I gave above? Secondly who will want to run a dock without effects, and if they dont have them enabled why have 2 separate logins?
I trust Microsoft about as far as I could comfortably spit a dead rat
Ubuntu is my past, it is no longer the place it once was, on its forums you are no longer free to voice your opinion.
64bit Linux Powered

User avatar
kelebek333
Level 3
Level 3
Posts: 141
Joined: Sat Jun 25, 2011 11:57 am

Re: Howto replace all Gnome 3 panels with the AWN dock

Post by kelebek333 » Sat Nov 19, 2011 11:38 pm

If you have a problem with compiz or driver on your system, in this case your system open automaticly with AWN fallback session. Or may not want to install compiz on your system at that time have to choose this AWN fallback session.

User avatar
Kilz
Level 4
Level 4
Posts: 200
Joined: Mon Apr 04, 2011 8:00 pm

Re: Howto replace all Gnome 3 panels with the AWN dock

Post by Kilz » Mon Nov 21, 2011 7:58 am

kelebek333 wrote:If you have a problem with compiz or driver on your system, in this case your system open automaticly with AWN fallback session. Or may not want to install compiz on your system at that time have to choose this AWN fallback session.
1. If you have compiz on your system, you use it, no need for a fallback session without compiz.
2. If you dont have compiz installed no need for a compiz session

So the person following your reshuffled and extra work version of the howto gains nothing. In my opinion you didnt come in and add a few helpful things, you restated what was above and basically tried to take over this thread. It wasnt a real nice thing to do, I wouldnt try and do what you did. Next I expect youll try and justify bad behavior, in this one thing I hope to be proved wrong.
I trust Microsoft about as far as I could comfortably spit a dead rat
Ubuntu is my past, it is no longer the place it once was, on its forums you are no longer free to voice your opinion.
64bit Linux Powered

J@n
Level 1
Level 1
Posts: 25
Joined: Thu Nov 10, 2011 4:10 pm

Re: Howto replace all Gnome 3 panels with the AWN dock

Post by J@n » Wed Nov 30, 2011 3:18 pm

Hi Kilz,

Great post! Recently switched from Ub 11.04 with AWN to Minty and missed AWN beyond words. Your post gave me back my favorite desktop.

Kudos!

Greetz,

J@n
AMD Phenom II X4 975 - 16 GB DDR3-1033 - 55 GB SSD - 1.5 TB HDD - 2 TB HDD - Mint 13

If it don't fit use a hammer

J@n
Level 1
Level 1
Posts: 25
Joined: Thu Nov 10, 2011 4:10 pm

Re: Howto replace all Gnome 3 panels with the AWN dock

Post by J@n » Sun Dec 04, 2011 11:22 am

Hi Guys,

One little question: When I switch to Gnome 3 I can use ALT+TAB to switch between applications. However, when I select AWN as configured by Kilz, ALT+TAB does not work :?

I went to keyboard shortcuts in System Settings and I find that ALT+TAB is supposed to switch between apps.

Any idea?

Any help greatly appreciated!

Greetz,

J@n
AMD Phenom II X4 975 - 16 GB DDR3-1033 - 55 GB SSD - 1.5 TB HDD - 2 TB HDD - Mint 13

If it don't fit use a hammer

J@n
Level 1
Level 1
Posts: 25
Joined: Thu Nov 10, 2011 4:10 pm

Re: Howto replace all Gnome 3 panels with the AWN dock

Post by J@n » Sat Dec 10, 2011 12:48 pm

Hi Guys,

Never Mind:)

Installed Compizconfig-settings-manager from the repo's and activated the "Application Switcher" in the CompizConfig Settings Manager. All is well now :D

HTH anyone who has similar problems after applying the how-to from kliz.

Greetz,

J@n
AMD Phenom II X4 975 - 16 GB DDR3-1033 - 55 GB SSD - 1.5 TB HDD - 2 TB HDD - Mint 13

If it don't fit use a hammer

Post Reply

Return to “Tutorials”