LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Plz help me in permanently resizing windows in KDE (https://www.linuxquestions.org/questions/linux-software-2/plz-help-me-in-permanently-resizing-windows-in-kde-463828/)

tdunne 07-13-2006 08:15 PM

Plz help me in permanently resizing windows in KDE
 
Hi, I'm using xmaxima with gnuplot to plot functions and such. Wondering how to resize windows permanently in KDE to get everything proportional. For example, when I plot a circle, it now comes out as an ellispe in the gnuplot window. All I've figured out to do is resize it manually, I'd like to make the changes to the window size, geometry permanent. FYI, I'm running Kbuntu 2.6.12-10-k7.

Thanks in advance....

KimVette 07-13-2006 08:54 PM

Your problem is likely not a KDE-configuration, but an X-server configuration issue.


What is the DPI of your monitor (measure width and height of your screen, divide X and Y resolution by those numbers) and how does it compare to xdpyinfo? Chances are you will need to modify the DisplaySize of your Monitor definition in xorg.conf. Now, you will need to measure the width and height of your screen in millimeters (yep, the X folks, much like NASA, like to mix meteric and Imperial ;)) and change the dimensions. Here is mine as an example:

Quote:

Section "Monitor"
DisplaySize 400 300
HorizSync 28-115
Identifier "Monitor[0]"
ModelName "ViewSonic"
Option "DPMS"
VendorName "P815"
VertRefresh 50-160
UseModes "Modes[0]"
EndSection

tdunne 07-13-2006 10:02 PM

From xdpyinfo:

Code:

screen #0:
  dimensions:    1600x1200 pixels (363x272 millimeters)
  resolution:    112x112 dots per inch

From my xorg.conf:

Code:

SubSection "Display"
        Depth      1
        Modes      "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"

But, here's the thing, I'm also using another plotting program, Kmplot, which plots a circle like a circle (as opposed to an ellispe) (scratches head).

KimVette 07-14-2006 06:41 PM

Does the DPI actually match what you expect if you measure your monitor?

tdunne 07-14-2006 07:44 PM

I haven't actually measured the monitor yet, mainly because I don't think that's the problem. Note that other plotting programs plot a circle as a circle, as I described previously. In addition, the screen, GUI, apps seem to be perfectly aligned. The only time I've noticed skewed proportions is when I use Xmaxima to plot functions.

I know that there is a way to custom configure the window geometry of a window in KDE, as follows:

<RIGHT CLICK> onto the window title bar, then select `Advanced' > `Special Window Settings' - up pops the customization window for that particular window's geometry. After twiddling with the settings for awhile, I couldn't do diddly squat with the actual window, nothing took on the windows size, shape, or behavior. I'd like to permanently set the window popup of Gnuplot Xmaxima output to 600 X 600 pixels (this geometry draws a circle as a circle, or pretty darn close), that's it. Why would I want to change my xorg.conf geometry when other apps' geometries are fine right now?

Anyway, I'm going to play with the customization feature I mentioned some more, maybe I'll get it. I'll add that I can't find any documentation on this anywhere, tried googling, other search engines, etc., so I guess it'd be nice to post a solution and maybe a short howto or something for customizing window geometries for specific apps in KDE.

flipwhy 08-24-2006 03:44 PM

in gnuplot...type the command set size square <Enter>
that should make it a circle


All times are GMT -5. The time now is 01:24 AM.