LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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



Reply
 
Search this Thread
Old 09-12-2010, 07:02 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,884

Rep: Reputation: 62
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?
 
Old 09-13-2010, 12:06 AM   #2
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
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.
Old 09-13-2010, 09:48 AM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,884

Original Poster
Rep: Reputation: 62
Okay, I'll try that. I just have to find out what the pixel size and position of my desired window geometry is. Right?
 
Old 09-13-2010, 10:53 AM   #4
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
Yup. Oh, and I forgot to mention that after you modify .Xdefaults you need to reload it. Use this command:

xrdb -merge ~/.Xresources
 
Old 09-13-2010, 11:56 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
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.
 
Old 09-13-2010, 04:54 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,884

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by David the H. View Post
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 07:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK library to integrate the cube and other 3D window geometry Kenny_Strawn Programming 6 03-13-2010 02:11 PM
how to I pass window geometry to mozilla-firefox from command line? drkstr Slackware 5 05-30-2006 11:12 PM
More to FC2/XP dual boot bug than disk geometry settings? Curlychris Fedora - Installation 5 11-21-2004 04:52 AM
Making permanent screen geometry settings bjb123 Linux - Hardware 2 12-21-2003 05:40 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration