Home Forums Wiki Doc Install Extras Screenshots IRC Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Tips and Tricks | Trucs et Astuces Cairo Dock only on Ubuntu 11.04 with Gnome interface
The latest stable release is the *3.2.1* : How to install it here.
Tips and Tricks | Trucs et Astuces

Subjects Author Language Messages Last message
[Resolved] Cairo Dock only on Ubuntu 11.04 with Gnome interface
polarlys English 6 polarlys [Read]
29 July 2011 à 14:13

polarlys, Thursday 21 July 2011 à 20:20 | Quote


Subscription date : 21 July 2011
Messages : 10
Hi guys!

First of all I want to congratulate with you because you have created the best dock of the world! I love it!

I'd have just a pair of questions about it:

- Is there a way to keep Cairo Dock only on Ubuntu with classic interface (Gnome) and not in Unity?

- On cairo dock I put "Compiz Icon" applet and I noticed that if I click on it using the middle click of mouse all the Compiz effects are disabled. But is this the real function or it happens only to me? If so, I think it's a great feature because it replaces "Compiz Switch" which is unavailable on Ubuntu 11.04. I love Compiz effects, but sometimes I need to disable them otherwise all the videos that I see tend to be slow crawl.

Thank you very much in advance!

matttbe, Thursday 21 July 2011 à 20:43 | Quote


Subscription date : 24 January 2009
Messages : 11237
Hello,

Is there a way to keep Cairo Dock only on Ubuntu with classic interface (Gnome) and not in Unity?
Yes maybe... I guess you can use a script to detect if Unity is launched or not. I don't use Unity so I don't know if it works but you can have something like that:
if [[ `ps aux | grep -e "[u]nity" ` ]]; then
    echo "Unity is launched"
else
    cairo-dock
fi
But Unity is a plugin of Compiz and maybe there is no process named "unity"...
Maybe something like that:
if test -n "`ps aux | grep -e "[c]ompiz"`"; then
    # Unity is maybe launched
    bUnityIsLaunched=0
    if test -f "$HOME/.config/compiz-1/compizconfig/Default.ini"; then
        pluginsFlat=`grep "s0_active_plugins" $HOME/.config/compiz-1/compizconfig/Default.ini`
        if test `echo $pluginsFlat | grep -c unityshell` -eq 1; then
            bUnityIsLaunched=1
        fi
    fi
    # gconf
    if test $bUnityIsLaunched -eq 0 -a -n "`which gconftool-2`"; then
        plugins=`gconftool-2 -g /apps/compiz-1/general/screen0/options/active_plugins`
        if test `echo $plugins | grep -c unityshell` -eq 1; then
            bUnityIsLaunched=1
        fi
    fi

    if test $bUnityIsLaunched -eq 0; then
        cairo-dock
    fi
else
    cairo-dock
fi
(you can simply copy/paste this script into a .sh file, add the right to execute it (right click on the file / properties / permissions) and add this file on the list of the applications launched at startup.

On cairo dock I put "Compiz Icon" applet and I noticed that if I click on it using the middle click of mouse all the Compiz effects are disabled. But is this the real function or it happens only to me?
In fact, Compiz is replaced by another window manager (Metacity I guess, so without any effects)

polarlys, Friday 22 July 2011 à 02:11 | Quote


Subscription date : 21 July 2011
Messages : 10
Hi matttbe! Many thanks for your reply.

Well, I tried to create a script as you said me but unfortunately when I start Ubuntu with Unity interface the Cairo Dock hasn't been removed, on the contrary appears another cairo dock so I had two docks until I removed the script from the list of the applications launched at startup.

matttbe, Friday 22 July 2011 à 02:17 | Quote


Subscription date : 24 January 2009
Messages : 11237
Yes but you also have to remove Cairo-Dock from the list of these applications launched at startup

polarlys, Saturday 23 July 2011 à 17:45 | Quote


Subscription date : 21 July 2011
Messages : 10
OK, now it seems works

I wanted to do this thing just for curiosity, but I have to admit that Unity I don't like at all so I use it very few times. I prefer Gnome (with cairo dock of course :-)) because in my opinion Unity is too buggy and not too customizable, at least until this moment.

By the way thank you very much for all matttbe, it was very kind of you!

Bye!

fabounet, Thursday 28 July 2011 à 13:16 | Quote


Subscription date : 30 November 2007
Messages : 16708
On cairo dock I put "Compiz Icon" applet and I noticed that if I click on it using the middle click of mouse all the Compiz effects are disabled. But is this the real function or it happens only to me?

yes, this is made to quickly switch between Compiz and another WM (for games for instance).
the applet has been replaced by the Composite-Manager applet in the 2.4.

polarlys, Friday 29 July 2011 à 14:13 | Quote


Subscription date : 21 July 2011
Messages : 10
fabounet :
On cairo dock I put "Compiz Icon" applet and I noticed that if I click on it using the middle click of mouse all the Compiz effects are disabled. But is this the real function or it happens only to me?

yes, this is made to quickly switch between Compiz and another WM (for games for instance).
the applet has been replaced by the Composite-Manager applet in the 2.4.


It's a really great feature!

Thank you very much fabounet.

Bye!

Tips and Tricks | Trucs et Astuces

Subjects Author Language Messages Last message
[Resolved] Cairo Dock only on Ubuntu 11.04 with Gnome interface
polarlys English 6 polarlys [Read]
29 July 2011 à 14:13

Post a message

Anti-spam filter 6 (+) plus (+) 7 =
            
Did you know ? The quote tag can display the author of the quote : [quote=author][/quote]


Glx-Dock / Cairo-Dock List of forums Tips and Tricks | Trucs et Astuces Cairo Dock only on Ubuntu 11.04 with Gnome interface Haut de page

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2012 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence.
Many thanks to TuxFamily for the web Hosting