Gnome 3 -The switch!

What do you have and what do you want?

Moderators: b1o, jkerr82508

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 19 May 2011, 23:17

*wants color for title bars - hates the plain white. Loathes it.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Gnome 3 -The switch!

Postby viking60 » 19 May 2011, 23:32

Coming up.....
If you make the following changes to /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Code: Select all

....
<constant name="C_border_focused" value="#000064" />
<constant name="C_border_unfocused" value="#0052FF" />
<constant name="C_border_attached_focused" value="#000064" />
<constant name="C_titlebar_focused_hilight" value="#000064" />
<constant name="C_titlebar_unfocused" value="#0052FF" />
....
much further down
.....
<draw_ops name="titlebar_fill_focused_alt">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#6B6EAC"/>
                <color value="#000064"/>
        </gradient>
</draw_ops>
....
<draw_ops name="titlebar_fill_unfocused">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#7096E3"/>
                <color value="#0052FF"/>
        </gradient>
</draw_ops>
....

You will get Blue and Light Blue - you can play around with the colors. (Make a backup first too).
<ALT>+<F2> and fill inn r to test it - it works!
Image
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 20 May 2011, 02:27

Gracias amundo.

May try also, starting compiz manually and seeing if I can get Emerald going. If I can, I'll be all the happier. :)

Someday when there's time though, unfortunately. Life's become mind-blowingly busy lately.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Gnome 3 -The switch!

Postby viking60 » 20 May 2011, 02:54

De nada - but you are right of course Emerald or some decoration tool is much better than this hacking. I guess it will come eventually. I am told that the Gnome guys had to rush the release because of Unity. So I guess there are a lot of improvements to be expected.
I am so pleased with this hack so it is time to show off my gnome3-shell again :-D
:A
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 21 May 2011, 08:17

Do dat be AWN I see in that? Or kiba-dock?
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Gnome 3 -The switch!

Postby viking60 » 21 May 2011, 09:18

Dat wood b AWN
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 21 May 2011, 09:22

Aye, cap'n. *Ooooohhm,,, oooooohhm, *chants in homage
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 27 May 2011, 05:56

viking60 wrote:Coming up.....
If you make the following changes to /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Code: Select all

....
<constant name="C_border_focused" value="#000064" />
<constant name="C_border_unfocused" value="#0052FF" />
<constant name="C_border_attached_focused" value="#000064" />
<constant name="C_titlebar_focused_hilight" value="#000064" />
<constant name="C_titlebar_unfocused" value="#0052FF" />
....
much further down
.....
<draw_ops name="titlebar_fill_focused_alt">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#6B6EAC"/>
                <color value="#000064"/>
        </gradient>
</draw_ops>
....
<draw_ops name="titlebar_fill_unfocused">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#7096E3"/>
                <color value="#0052FF"/>
        </gradient>
</draw_ops>
....


This no workied for me. Need to know where I went wrong. Still stuck with white.

Image

cat /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml is here.

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Gnome 3 -The switch!

Postby viking60 » 27 May 2011, 12:15

Ok after yesterdays update I have to redo it anyway so gimme a minute...
Let us start with the title bars first:

Code: Select all

sudo nano /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

find

Code: Select all

<draw_ops name="titlebar_fill_focused_alt">

And make it look exactly like this:

Code: Select all

<draw_ops name="titlebar_fill_focused_alt">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#6B6EAC" />
                <!-- <color value="gtk:bg[NORMAL]"/> -->
                <!-- <color value="blend/gtk:bg[NORMAL]/#000000/0.03" /> -->
                <color value="#000064"/>
        </gradient>
</draw_ops>



Then "Arrow down" to

Code: Select all

<draw_ops name="titlebar_fill_unfocused">

Here we have to change a lot! Make it look exactly like this:

Code: Select all

<draw_ops name="titlebar_fill_unfocused">
        <gradient type="vertical" x="0" y="0" width="width" height="height">
                <color value="#7096E3"/>
                <color value="#0052FF"/>
</gradient>
</draw_ops>


You will have to add the gradient and replace the second line. So it is best to delete it and cut and paste from here.

Save it and make a first test with <ALT>+<F2> and fill in r hit enter and it restarts.
When you open two windows the active one will have a dark blue bar and the inactive one will be light blue.

The text still looks like shite though.. but we are not finished... :coffee_cup:
Ok Let's finish:
Make these look exactly like this:

Code: Select all

<!-- meaningfull constants -->

<constant name="C_border_focused" value="blend/#000064/gtk:bg[NORMAL]/0.6" />
<constant name="C_border_unfocused" value="blend/#0052FF/gtk:bg[NORMAL]/0.8" />
<constant name="C_border_attached_focused" value="blend/#000064/gtk:bg[NORMAL]/0.4" />
<constant name="C_titlebar_focused_hilight" value="#000064" />
<constant name="C_titlebar_unfocused" value="#0052FF" />
<constant name="C_title_focused" value="#EADD14" />
<constant name="C_title_focused_hilight" value="#101000" />
<constant name="C_title_unfocused" value="blend/gtk:text[NORMAL]/gtk:bg[NORMAL]/0.9" />

save it and do the <ALT>+<F2> +r

Now it should look like this:
Image

Once you have it working you can play around with the colors here of course.
When done it is time to prevent this file from being "updated" in Arch it is easy! In /etc/pacman.conf I enter:

Code: Select all

NoUpgrade = usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
:idea: No slash at the beginning!

The entire enchilada here
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 27 May 2011, 14:06

viking60 wrote:Ok after yesterdays update I have to redo it anyway so gimme a minute...

SCORE!!! I had made those changes BEFORE I updated. Will try now, but remember, I'm not on gnome-shell with it so Alt+F2 then r doesn't work for me. I have to logout/login. BBIAF.

Edit: Nope, still no love, after 1st & 2nd steps. Could this be, *because* I'm not on gnome-shell perhaps? Wait, nope, because it's a metacity file, which shouldn't affect, or be affected by gnome-shell.

Therefore, since it's a root file (one in root), I wonder if I need to reboot instead of just logout/login?

Also, wondering if being on clearlooks-colors theme for my icons is throwing a kink in the works?

Going to try your whole enchilada, logout/login, and go from there. Will report back. Thanks.

Edit2: Nope, still no joy. *Somehow*, what's happening in root's metacity isn't "transferring over" so to speak, to what's going on with regular user here. I have not only logged out/logged in, but also rebooted.

Here's what I have in the tweak tool:
Image

Here's the permissions on that file we've been working with:
Image
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Gnome 3 -The switch!

Postby viking60 » 27 May 2011, 14:52

Yes this will only work in Gnome3-shell. In Gnome3 Fallback you have Compiz and Emerald working so I don't see why you would want it there?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Gnome 3 -The switch!

Postby dedanna1029 » 27 May 2011, 15:13

For times when I'm not running compiz? :lol: I don't do these things full-time, y'know. lol.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Software”