Get classic Mint desktop in Gnome shell

Forum rules
Before you post please read how to get help
User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Thu Nov 17, 2011 9:44 am

KBD47 wrote:So is there an easy way to get rid of those hot corners in MGSE? I'm having flashbacks of that Unity bar jumping out at me every time I get the cursor too deep in those corners.
Top left hot corner disabled if that's not included in esteban's fix:

Code: Select all

sudo gedit /usr/share/gnome-shell/js/ui/layout.js
And change true to false in the last line below:

Code: Select all

this._corner = new Clutter.Rectangle({ name: 'hot-corner',
                                               width: 1,
                                               height: 1,
                                               opacity: 0,
                                               reactive: true })
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Thu Nov 17, 2011 10:06 am

linuxviolin wrote:
bimsebasse wrote:It's not yet as flexible, customizable or stable as the good old gnome-panel desktop, but give it some time - it's still early days for gnome-shell and Gnome 3.
And to have something about correct and usable, you need to do a lot of work, use several extensions etc just because the base product is a such crap that you must try to improve it... :evil:
No, what's happening here is forcing a modern desktop interface to behave and act like old Gnome. It's perfectly usable and workable in its default setup, unless your habits, your ability to adapt, your sense of aesthetics etc. get in the way. It would be more difficult the other way round and require much more work, trying to get gnome-panel to look and act like gnome-shell.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

lurkatron
Level 3
Level 3
Posts: 127
Joined: Tue Nov 01, 2011 2:18 pm

Re: Get classic Mint desktop in Gnome shell

Post by lurkatron » Thu Nov 17, 2011 11:05 am

someone figure out how to get fixed windows placement as well, like in compiz and ill jump on this (not devilspie)

User avatar
esteban1uy
Level 5
Level 5
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Get classic Mint desktop in Gnome shell

Post by esteban1uy » Thu Nov 17, 2011 11:17 am

Update!
This will make the reflection extension behave very close to that we all wanted (no upper left hot corner, notifications and system tray messages at bottom, etc.).
Let's asume we have installed the reflections extension (yet unmodded) with the bottom panel extension disabled.
First let's do a sudo gedit /usr/share/gnome-shell/extensions/gnome-shell-reflection@emergya.com/extension.js
Then we can scroll down in gedit to line 97 (95 in new version):

Code: Select all

 this.trayBox.set_position(this.bottomMonitor.x, this.bottomMonitor.y);
and change it to:

Code: Select all

// this.trayBox.set_position(this.bottomMonitor.x, this.bottomMonitor.y);
Now we go to line 103 (101 in new version):

Code: Select all

this.trayBox.set_clip(0, 0,
              this.bottomMonitor.width, this.bottomMonitor.height);
and we change those lines to:

Code: Select all

//this.trayBox.set_clip(0, 0,
              //  this.bottomMonitor.width, this.bottomMonitor.height);
And now the tricky part. Let's go to line 277 (223 in new version):

Code: Select all

function updateMessageTray() {

    // Change the direction of the animation when showing the tray bar.
    Main.messageTray._showTray = Lang.bind(Main.messageTray, function() {

        this._tween(this.actor, '_trayState', MessageTray.State.SHOWN,
                    { y: 0,
                      time: MessageTray.ANIMATION_TIME,
                      transition: 'easeOutQuad'
                    });
    });

    // Change the direction of the animation when hiding the tray bar.
    Main.messageTray._hideTray = Lang.bind(Main.messageTray, function() {

        this._tween(this.actor, '_trayState', MessageTray.State.HIDDEN,
                    { y: -this.actor.height + 1,
                      time: MessageTray.ANIMATION_TIME,
                      transition: 'easeOutQuad'
                    });
    });

    // Align summary items to the left
    Main.messageTray._summaryBin.x_align = St.Align.START;

    // SummaryItems menus.
    Main.messageTray._summaryBoxPointer._arrowSide = St.Side.TOP;
}
We change that with this:

Code: Select all

function updateMessageTray() {

    // Change the direction of the animation when showing the tray bar.
    Main.messageTray._showTray = Lang.bind(Main.messageTray, function() {

        this._tween(this.actor, '_trayState', MessageTray.State.SHOWN,
                    { y: - this.actor.height * 1.8,
                      time: MessageTray.ANIMATION_TIME,
                      transition: 'easeOutQuad'
                    });
    });

    // Change the direction of the animation when hiding the tray bar.
   // Main.messageTray._hideTray = Lang.bind(Main.messageTray, function() {

      //  this._tween(this.actor, '_trayState', MessageTray.State.HIDDEN,
      //              { y: -this.actor.height + 1,
      //                time: MessageTray.ANIMATION_TIME,
      //                transition: 'easeOutQuad'
      //              });
   // });

    // Align summary items to the left
   // Main.messageTray._summaryBin.x_align = St.Align.START;

    // SummaryItems menus.
   // Main.messageTray._summaryBoxPointer._arrowSide = St.Side.TOP;
}

Then we go to line 501 (446 in new version):

Code: Select all

updateNotifications();
and we change that with this:

Code: Select all

//  updateNotifications();
Then we can save, restart the Gnome-shell (Alt+F2 r), and now the notifications and the message tray will behave exactly as we wanted.
To test it, plug a pendrive or whatever that triggers a notification at the message tray and look what happens.
Now the "hot corner" is at bottom right, so if we want (for example) safely extract our pendrive, we can send our mouse pointer to that corner, the tray will pop up THERE, and we can unmount the pendrive as usual.

Just try it!

Update:
Use THIS to fix the problem with menu not showing when you right click on a window button in task bar.
Last edited by esteban1uy on Fri Dec 09, 2011 12:21 am, edited 2 times in total.
Sorry, I only speak Spanish

KBD47
Level 7
Level 7
Posts: 1779
Joined: Fri Jul 29, 2011 12:03 am

Re: Get classic Mint desktop in Gnome shell

Post by KBD47 » Thu Nov 17, 2011 12:13 pm

esteban1uy wrote: Well, after some experiments I found something pretty interesting (how to send the "hot corner" to bottom right, and how to get the notifications and message tray popping up from bottom).

EDITED (I updated the procedure, take a look at THIS post)

I love the times when you can play with a RC. It's so much fun!!!

PS: Sorry for my English, I only speak Spanish.
Thanks! Just curious if you think updates to Mint will reset this or break the set up?

User avatar
esteban1uy
Level 5
Level 5
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Get classic Mint desktop in Gnome shell

Post by esteban1uy » Thu Nov 17, 2011 12:56 pm

KBD47 wrote:Thanks! Just curious if you think updates to Mint will reset this or break the set up?
Well... there's a chance of make that extension unusable (and our mods) by a radical change in Gnome-shell API.
As far as I know, an API suffers important changes only when the whole version changes.
The procedures implemented in "reflection" extension are not based on deprecated, hacked or undocumented Gnome-shell API functions, they are legitimate and up to date, so it is reasonable to assume that no minor update of Gnome-shell could break that extension.
On the other hand, some other extensions could interfere with "reflection" (remember "noally"), but in that case you have a little more control: enable what you want - disable what you don't.
Sorry, I only speak Spanish

KBD47
Level 7
Level 7
Posts: 1779
Joined: Fri Jul 29, 2011 12:03 am

Re: Get classic Mint desktop in Gnome shell

Post by KBD47 » Thu Nov 17, 2011 1:47 pm

esteban1uy wrote: Well... there's a chance of make that extension unusable (and our mods) by a radical change in Gnome-shell API.
As far as I know, an API suffers important changes only when the whole version changes.
The procedures implemented in "reflection" extension are not based on deprecated, hacked or undocumented Gnome-shell API functions, they are legitimate and up to date, so it is reasonable to assume that no minor update of Gnome-shell could break that extension.
On the other hand, some other extensions could interfere with "reflection" (remember "noally"), but in that case you have a little more control: enable what you want - disable what you don't.
Thanks!

KBD47
Level 7
Level 7
Posts: 1779
Joined: Fri Jul 29, 2011 12:03 am

Re: Get classic Mint desktop in Gnome shell

Post by KBD47 » Thu Nov 17, 2011 2:03 pm

bimsebasse wrote:
Top left hot corner disabled if that's not included in esteban's fix:

Code: Select all

sudo gedit /usr/share/gnome-shell/js/ui/layout.js
And change true to false in the last line below:

Code: Select all

this._corner = new Clutter.Rectangle({ name: 'hot-corner',
                                               width: 1,
                                               height: 1,
                                               opacity: 0,
                                               reactive: true })
Thanks! That was a pretty quick fix to get rid of the left top hot corner.

User avatar
linuxviolin
Level 8
Level 8
Posts: 2082
Joined: Tue Feb 27, 2007 6:55 pm
Location: France

Re: Get classic Mint desktop in Gnome shell

Post by linuxviolin » Thu Nov 17, 2011 4:09 pm

bimsebasse wrote:a modern desktop interface
:lol: If you say so...
bimsebasse wrote:It's perfectly usable and workable in its default setup
No, it is not.

But I'll stop here, I have already talked about this thing, aka GNOME 3, enough. It makes me ill now... :twisted:
K.I.S.S. ===> "Keep It Simple, Stupid"
"Simplicity is the ultimate sophistication." (Leonardo da Vinci)
"Everything should be made as simple as possible, but no simpler." (Albert Einstein)

User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Sat Nov 19, 2011 1:35 am

Reached the end of my limited abilities with this:

Image

Video: http://www.youtube.com/watch?v=VVzWCIC2gCM

Added Workspace extension, and application icons now appear in the panel instead of in the message tray (nicked those things from Pinguy 11.10 beta). Tweaked the Window List extension stylesheet to fit the shell theme.
The theme is Minty, a nicer shell theme than the current mintified Zukitwo Mint-Z by some margin IMO: http://satya164.deviantart.com/art/Gnom ... -268492415

Issues (anyone know the fixes?):
- can't get Mint Menu to suppress the activities button like the standard Application Menu does, but in Gnome Shell the Mint Menu has no functionality not covered by the application menu + overview (search and favourites bar), so no big loss as it is.
- window tabs list can reach no further than the exact middle of the panel and are therefore squeezed very small very quickly
- closing the last window opens the overview (!)
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

User avatar
stevenstarar
Level 1
Level 1
Posts: 1
Joined: Sun Nov 20, 2011 9:28 am

Re: Get classic Mint desktop in Gnome shell

Post by stevenstarar » Sun Nov 20, 2011 10:00 am

Absolutely perfect, thanks so much to everyone who made this extra modification possible, now Ubuntu is a far distant memory!

Daniel4lm
Level 2
Level 2
Posts: 90
Joined: Tue May 24, 2011 7:14 am

Re: Get classic Mint desktop in Gnome shell

Post by Daniel4lm » Sun Nov 20, 2011 2:16 pm

This is what I did. All extensions sre from Linux Mint 12 including Reflection extension. Bottom panel extension is disabled.
esteban1uy update moves notification panel at the bottom of the screen. Thank you esteban1uy.
Problem is the Activities button at the bottom right corner.

Image

This I solved by adding the next code in gnome shell theme (I use Minty Fresh theme):

Code: Select all

#panelActivities {
	border: none;
	background-image: none;
	background-position: 0 0;
	width: 0px;
	height: 24px;
	color: rgba(0,0,0,0.0);
}

#panelActivities:hover {
	transition-duration: 300;
	background-image: none;
	background-gradient-direction: vertical;
	background-gradient-start: rgba(140,200,255,0.0);
	background-gradient-end: rgba(61,149,231,0.0);
	box-shadow: inset 0px 0px 1px 1px rgba(255,255,255,0.0);
}
#panelActivities:active,
#panelActivities:overview {
	background-image: none; 
	background-gradient-direction: vertical;
	background-gradient-start: rgba(140,200,255,0.0);
	background-gradient-end: rgba(61,149,231,0.0);
	box-shadow: inset 0px 0px 1px 1px rgba(255,255,255,0.0);
}
After:

Image

User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Sun Nov 20, 2011 4:28 pm

Brilliant! that's that sorted then. How is your experience with it? Do you get the same small bugs and glitches I do?

-Mint Menu occasionally opens downwards
-shell crashes and glitches are a bit more frequent than in a vanilla setup
-closing the last window opens the overview
-window tabs can't expand past the middle of the panel
-1pixel transparent vertical line below the panel
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

MrD
Level 4
Level 4
Posts: 227
Joined: Wed Dec 09, 2009 8:34 am
Location: UK
Contact:

Re: Get classic Mint desktop in Gnome shell

Post by MrD » Sun Nov 20, 2011 9:33 pm

If you want hilarity, I now have a black bottom panel, with the buttons to flip between the two desktops and the exclamation mark that brings the gnome 3 panel down from up top. I have figured how to start up Firefox and aMSN in usr/bin, can get terminal up, but can't figure how to restart "advanced settings" and try and dig my way out of this hole. What should I be doing?

EDIT: manually installed Cairo and got to"advanced settings" from there. Nice waste of half an hour!
Dell Inspiron 1520 - T6570 2.1ghz C2D, 4 gigs ram, integrated Intel 965 GPU, Intel replacement wifi card.

User avatar
esteban1uy
Level 5
Level 5
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Get classic Mint desktop in Gnome shell

Post by esteban1uy » Sun Nov 20, 2011 11:03 pm

Using "reflections" extension, when you right click on a window button at the task bar, the menu opens downwards, so it is not visible.
The problem is "window list" extension not detecting the "reflections" extension, so it thinks the taskbar is still at top and pops down the menu.
Let's make the "window list" extension work the right way:

Open terminal and do a sudo gedit /usr/share/gnome-shell/extensions/windowlist@linuxmint.com/extension.js
Scroll down in the opened gedit to line 37, you will see this:

Code: Select all

PopupMenu.PopupMenu.prototype._init.call(this, actor, 0.0, St.Side.TOP, 0);
Now, change it to:

Code: Select all

PopupMenu.PopupMenu.prototype._init.call(this, actor, 0.0, St.Side.BOTTOM, 0);
Save, restart Gnome (Alt+F2 r) and your menu will open the right way. Take a look at this:
Image
Sorry, I only speak Spanish

User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Mon Nov 21, 2011 1:53 am

Haven't experienced that with window tab popups but it happens occasionally with Mint Menu (opening downwards).
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

User avatar
esteban1uy
Level 5
Level 5
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Get classic Mint desktop in Gnome shell

Post by esteban1uy » Mon Nov 21, 2011 6:48 am

You can do this to fix the 1 pixel "gap" between the panel and the screen's bottom border:
Go to your current theme folder (./themes or /usr/share/themes), open the file gnome-shell.css in gedit and locate an entry similar to this (the exact content depends on the theme, but it always starts with #panel { ):

Code: Select all

#panel {
    color: #fff;
    background-gradient-direction: vertical;
    background-gradient-start: rgba(0,0,0,0.6);
    background-gradient-end: rgba(0,0,0,0.72);
    box-shadow: inset 0px 1px 3px 0px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    font-size: 9pt; 
    font-weight: bold;
    height: 2.1em;
}
What you have to do is to increase the value at height: (mine was 2.1em so I changed it to 2.2em), then save the file, restart Gnome-shell... and no more gap!!!

If you try some shell themes you will see that some of them have that little "gap" and some not. That's because theme designers didn't realize that the top panel could be at the bottom of the screen (using reflections extension). I think it will not take very much to see a lot of shell themes updated to correct such thing.
Sorry, I only speak Spanish

User avatar
bimsebasse
Level 7
Level 7
Posts: 1700
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Get classic Mint desktop in Gnome shell

Post by bimsebasse » Mon Nov 21, 2011 12:12 pm

Cheers, esteban.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!

User avatar
esteban1uy
Level 5
Level 5
Posts: 734
Joined: Sat Nov 12, 2011 6:20 am

Re: Get classic Mint desktop in Gnome shell

Post by esteban1uy » Mon Nov 21, 2011 3:12 pm

If you want to do some experiments, try some workarounds found here and there, etc., here you have a useful tip:

If you press simultaneously the keys Alt and F2, and then type lg at the popup window, you will enter in "LookingGlass", the Gnome-shell debugger.
Remember: to exit "LookingGlass" press Esc in the Evaluator tab.

There you will find a tab named "Errors" that shows a log of all the errors in Gnome-shell components.

Let's say you are tweaking an extension or a shell theme and you mistyped something in the code. After you restarted the Gnome shell (Alt + F2 r) things are looking funny and you don't know where in the code is the problem: enter "LookingGlass" then go to "Errors" tab and take a look!
It will point you what and where the problem is.
I use it regularly when doing my tweaks and I found it very useful.

Also remember: if you have lost your menu, or your bottom or top panel and you don't know how to switch between windows or start an application, just press your "Super key" or "Windows key"!!!
Sorry, I only speak Spanish

jhs
Level 1
Level 1
Posts: 2
Joined: Tue Nov 22, 2011 11:36 am

Re: Get classic Mint desktop in Gnome shell

Post by jhs » Tue Nov 22, 2011 12:04 pm

- Mint Lisa RC

With all due respect to all people putting efforts on it.

This still looks like a knock off.
- Windows maximize under the bottom bar (task bar?).
- Windows minimize to top-left corner in the nowhere while you can see them on the bottom bar task list buttons.
- Applications menu (Star menu?) look is ridiculous. Click on a group and it expands vertically! Yuck!
- Mediocre interface configurability.Complete lack of right-click. Are we gong Mac?

I hated Ubuntu's take on Unity.
Here I can see some intentions for change but things are still in the air :(
XFCE or KDE or what else? I feel stranded :(

Post Reply

Return to “Others”