Remove window list in cinnamon

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
gfreeau

Remove window list in cinnamon

Post by gfreeau »

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.
User avatar
xenopeek
Level 25
Level 25
Posts: 29509
Joined: Wed Jul 06, 2011 3:58 am

Re: Remove window list in cinnamon

Post by xenopeek »

Moved here by moderator
Image
gfreeau

Re: Remove window list in cinnamon

Post by gfreeau »

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.
Post Reply

Return to “Tutorials”