

herbie643 wrote:......... I have written code that automatically centers windows. It is not that hard.............









herbie643 wrote:Mine now looks like
GtkWindow {
color: @theme_fg_color;
.centered {
position: fixed;
top: 50%;
left: 50%;
}
}




herbie643 wrote:I got the code from a google search on centering in css.
Like I said, it worked for me. .xsession-errors complained about needing a ; but other than that it worked.
GtkWindow {
color: @theme_fg_color;
position: fixed;
top: 50%;
left: 50%;
}







twodogs wrote:Go to Cinnamon Settings and click 'Keyboard.'
Under 'windows' scroll down to the keyboard shortcut for centering windows.

viking777 wrote:gdevilspie is great for this sort of thing and it is available in the package manager and absolutely tiny.
Instructions here (see part 2):
http://www.webupd8.org/2011/02/how-to-s ... mized.html

nomko wrote:viking777 wrote:gdevilspie is great for this sort of thing and it is available in the package manager and absolutely tiny.
Instructions here (see part 2):
http://www.webupd8.org/2011/02/how-to-s ... mized.html
Is it also applicable for Cinnamon??



viking777 wrote:nomko wrote:viking777 wrote:gdevilspie is great for this sort of thing and it is available in the package manager and absolutely tiny.
Instructions here (see part 2):
http://www.webupd8.org/2011/02/how-to-s ... mized.html
Is it also applicable for Cinnamon??
Well it works for centering my terminal window on Cinnamon, but I haven't tried every window type there is, that is about all I do with it at the moment. I don't suppose the information is much use to you, but when I tried it on Manjaro it failed to reposition my package manager window (which always opens up across two screens instead of on my main monitor) so it obviously has some limitations.




viking777 wrote:The instructions to use gdevilspie are on the link I gave starting about half way down with the words "To add a new rule using gDevilspie". About the only thing is doesn't tell you is that you have to manually position/size the windows you want before clicking 'get' . Everything else is more or less automatic. (you do have to have the deamon running but that is just a checkbox in the gui). I repeat though I only use this to centre my terminal window when it starts up I haven't investigated the more complex functions.

Users browsing this forum: No registered users and 7 guests