Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 34871  / 2 Years ago, wed, march 2, 2022, 9:08:52

I want my windows to be a specific size (not full screen) and to be in the middle of the screen by default. When I close the application and re-open it, it will be the dimensions I want it to be by default. Is there an easy way to do that? I'm using Ubuntu 11.10 and the Unity desktop enviroment.


More From » unity

 Answers
0

I don't know if you can simply make all windows behave the same, but you can individually. We'll use Thunderbird as an example.



Make sure you have ccsm installed: Open a terminal (Press Control-Alt-T) and enter



sudo apt-get install compizconfig-settings-manager



Open ccsm. You'll be using the Place Windows and Windows Rules plugins in the Window Management section.



Compiz Window Managment



First, go into Place Windows, select the Fixed Window Placement tab and Select New.



Fixed Window Placement screen



Enter the program name (class=xxxx) and set the starting X and Y coordinates. The coordinates start from the top left corner of the screen. This tells the program where to open on the screen.



Enter placement rules



Next go to the Windows Rules plugin and select the Size Rules tab and new.



Window Rules screen



Enter the program name (class=xxxx) and set the X and Y size. This tells the program what size to open the program in pixels (pixels wide x pixels high).



Enter size rules



Now, open the program you just did this for and it should open where and how big you want it to everytime.
Open your program



Note that you will have to do this for every program you want to open in a specific place and a specific size. You can also use one without the other, for instance always having a program open in a specific place but not having it's size defined.


[#40146] Thursday, March 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
cisccla questions
Tue, Nov 16, 21, 08:40, 3 Years ago
Thu, Sep 1, 22, 19:53, 2 Years ago
Fri, Apr 21, 23, 20:17, 1 Year ago
Thu, Dec 2, 21, 15:29, 2 Years ago
;