Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Used global background colour
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Used global background colour
matttbe English 6 brianw [Read]
26 May 2014 à 03:23

matttbe, Thursday 22 May 2014 à 02:46


Subscription date : 24 January 2009
Messages : 12573
Hello,

Just a quick idea here: it seems we can easily get the global background colour thanks to the _GNOME_BACKGROUND_REPRESENTATIVE_COLORS attribute of the root window.
This colour is used by Unity (for the background of the dock I think) and libnotify (for the background of the notifications).

Why not on the dock? But how? Do you have any idea?
(The background of the dock? Of the menu? Background of icons? Bubble?)

lylambda, Friday 23 May 2014 à 21:01


Subscription date : 06 September 2009
Messages : 1635
Is that specific for Ubuntu ? Gnome ? Or it's generic ?
Maybe it's a lot of work for just one system. Otherwise, of course that can help to obtain a good integration for everybody without manual configuration.

matttbe, Saturday 24 May 2014 à 16:27


Subscription date : 24 January 2009
Messages : 12573
Is that specific for Ubuntu ? Gnome ? Or it's generic ?

According to the name and the sources of Gnome-Desktop, it's GNOME specific...
You can check if you have it:
xprop -root | grep BACKGROUND


Maybe it's a lot of work for just one system
This attribute gives us the colour (e.g.: rgb(152,147,133)), it's easy to grab this colour and be notified when the colour changes (the dock is already notified when the background is modified).
But we have to know if it's interesting to use it

SQP, Sunday 25 May 2014 à 10:34


Subscription date : 03 July 2010
Messages : 1081
cinnamon - arch:
_GNOME_BACKGROUND_REPRESENTATIVE_COLORS(STRING) = "rgb(110,126,101)"

only place I seem to see it is on desktop notifications.

lylambda, Sunday 25 May 2014 à 23:45


Subscription date : 06 September 2009
Messages : 1635
xprop -root | grep BACKGROUND
Nothing for me (xfce on Archlinux like).

brianw, Monday 26 May 2014 à 01:53


Subscription date : 25 April 2012
Messages : 270
xprop -root | grep BACKGROUND


On Xubuntu 14.04 system with Gnome and some KDE stuff added on.

_GNOME_BACKGROUND_REPRESENTATIVE_COLORS(STRING) = "rgb(25,32,123)"


Will check on my Debian Wheezy system later.

brianw, Monday 26 May 2014 à 03:23


Subscription date : 25 April 2012
Messages : 270
lylambda :
xprop -root | grep BACKGROUND
Nothing for me (xfce on Archlinux like).


Same thing on Debian Wheezy.

Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Used global background colour
matttbe English 6 brianw [Read]
26 May 2014 à 03:23


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Used global background colour Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.