Remove window list in cinnamon

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Remove window list in cinnamon

Postby gfreeau on Thu Jan 26, 2012 11:04 pm

I use a dock at the bottom of my screen and use the flipped layout for cinnamon. I turned off the window list by editing /usr/share/cinnamon/js/ui/main.js and commenting these lines out at line 276

Code: Select all
windowList = new WindowList.WindowList(St.Side.TOP);
panel._leftBox.add(windowList.actor);


change too

Code: Select all
//windowList = new WindowList.WindowList(St.Side.TOP);
//panel._leftBox.add(windowList.actor);


If you are using a different cinnamon layout, you need to find the right code block to edit. In the main.js file you will see

Code: Select all
if (desktop_layout == LAYOUT_TRADITIONAL) {
//code here
}
else if (desktop_layout == LAYOUT_FLIPPED) {
// code here
}
else if (desktop_layout == LAYOUT_CLASSIC) {
// code here
}


A lot of code is repeated in these blocks, comment out the windowlist for your layout.

Hopefully this will get made a feature in cinnamon settings in future.

Looks like this: http://i.imgur.com/6r4rO.jpg
Last edited by gfreeau on Fri Jan 27, 2012 11:25 am, edited 2 times in total.
Image
gfreeau
Level 1
Level 1
 
Posts: 33
Joined: Wed Nov 30, 2011 5:49 pm

Linux Mint is funded by ads and donations.
 

Re: Remove window list in cinnamon

Postby xenopeek on Fri Jan 27, 2012 9:14 am

Moved here by moderator
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14735
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Remove window list in cinnamon

Postby gfreeau on Fri Jan 27, 2012 1:31 pm

Just another quick note, because I am using the flipped layout, whenever I minimize windows, the window animations go up towards where the window list should be. I added this code to /usr/share/cinnamon/js/ui/main.js at line 243

Code: Select all
            if (Main.desktop_layout == Main.LAYOUT_FLIPPED) {
                monitor = Main.layoutManager.bottomMonitor;
                yDest = monitor.height;
                xDest = monitor.x + monitor.width/2;
            }


Here is what the code block looks like now, my changes are at the bottom. This starts at around line 227.

Code: Select all
        if (effect == "traditional") { 
            actor.set_scale(1.0, 1.0);
            actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);       
            this._minimizing.push(actor);
            let monitor;
            let yDest;           
            if (Main.desktop_layout == Main.LAYOUT_TRADITIONAL || Main.desktop_layout == Main.LAYOUT_CLASSIC) {
                monitor = Main.layoutManager.bottomMonitor;
                yDest = monitor.height;
            }
            else {
                monitor = Main.layoutManager.primaryMonitor;
                yDest = 0;
            }           
            let xDest = monitor.x + monitor.width/4;

            if (Main.desktop_layout == Main.LAYOUT_FLIPPED) {
                monitor = Main.layoutManager.bottomMonitor;
                yDest = monitor.height;
                xDest = monitor.x + monitor.width/2;
            }


This sets the animation to be in the middle of the bottom monitor so windows minimize to where my dock is. I left the other code untouched and I am just overwriting the variables for this hack. This is in _minimizeWindow : function(cinnamonwm, actor).

I don't use an animation for maximizing windows so I didn't not alter that function, I use the traditional setting for minimizing.
Image
gfreeau
Level 1
Level 1
 
Posts: 33
Joined: Wed Nov 30, 2011 5:49 pm


Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 14 guests