Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-12-2010, 06:02 PM
|
#1
|
|
Senior Member
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,777
Rep:
|
window geometry settings question
I am trying to modify the "Configure Window Behavior" settings so that a new KWrite window will have a default size and location that is not affected by anything I did to a previous KWrite window. I have found that "Force" does that; unfortunately, "Force" also locks the window in position, preventing me from moving or resizing it if I should want to. Is there any setting that forces a default window size and location but allows me to change it?
|
|
|
|
09-12-2010, 11:06 PM
|
#2
|
|
Member
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825
Rep:
|
You could try using your .Xdefaults file, although I don't think all window managers or applications respect it. All you have to do is edit (or create) /home/username/.Xdefaults and set the options you want. I have something like this:
aterm*background: #000000
aterm*foreground: #ffffff
aterm*transparent: true
aterm*shading: 80
aterm*cursorColor: #d8d8d8
aterm*saveLines: 5000
aterm*tinting: gray
aterm*scrollBar: true
aterm*scrollBar_right: true
aterm*transpscrollbar: true
aterm*geometry: 100x42
aterm*fading: 70
aterm*font:*-*-fixed-medium-r-normal--*-140-*-*-*-*-iso8859-1
aterm*boldFont:*-*-fixed-bold-r-normal--*-*-140-*-*-*-*-iso8859-1
The line you'd care about is the geometry one. I believe you specify location with an additional two numbers:
aterm*geometry 800x300+10+20
That would cause all aterm windows to be 800x300 pixels in size, 10 pixels to the right and 20 pixels down from the top left corner. After the window is open you can do whatever you like to it - resize or move it to your heart's content.
|
|
|
1 members found this post helpful.
|
09-13-2010, 08:48 AM
|
#3
|
|
Senior Member
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,777
Original Poster
Rep:
|
Okay, I'll try that. I just have to find out what the pixel size and position of my desired window geometry is. Right?
|
|
|
|
09-13-2010, 09:53 AM
|
#4
|
|
Member
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825
Rep:
|
Yup. Oh, and I forgot to mention that after you modify .Xdefaults you need to reload it. Use this command:
xrdb -merge ~/.Xresources
|
|
|
|
09-13-2010, 10:56 AM
|
#5
|
|
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,697
|
Did you try the "apply initially" setting? That one only tells the window the position to start at. You should be able to move it from there afterwards.
|
|
|
|
09-13-2010, 03:54 PM
|
#6
|
|
Senior Member
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,777
Original Poster
Rep:
|
Quote:
Originally Posted by David the H.
Did you try the "apply initially" setting? That one only tells the window the position to start at. You should be able to move it from there afterwards.
|
Thanks, I'll try that first, it being simpler.
EDIT: Your solution worked, Mr. H. Thank you. 
Last edited by newbiesforever; 09-13-2010 at 06:53 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:00 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|