Open a program in a window with specified height and width.
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Open a program in a window with specified height and width.
kernel 2.6.21.5, slackware 12.0
KDE 2.0.0.4
Hi:
I'd like to open a program in a window whose dimensions, height and width are given by me. The program synopsis gives no other parameters than a filename. How could I do this, if at all possible? Thanks in advance.
Many programs written for the X Window System support command line options for the window's geometry. If your program is such then, as an example, adding "-geometry 800x600+0+0" to the command line arguments would place a window 800 pixels wide by 600 pixels tall at the upper left of the screen.
Unfortunately, not all programs honor this convention.
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609
Rep:
Unless you know exactly on which application you want to do this AND that particular application handle arguments to drive the 'window geometry' (as mentioned by saulgoode)... You should be able to do it programatically (Write a X program that communicate with the window)...
Or... look for some tool that would assist you in this task. Haven't tried any, but a quick google search point me to this one...
Code:
windowsize [options] [window] width height
Set the window size of the given window. If no window is given, %1 is the default. See WINDOW STACK and COMMAND CHAINING for more details.
[...]
xdotool windowsize I<window> 100% 50%
Many thanks for all this information. Perhaps the case is not so desperate, as I think it must depend on the GUI. The first time I opened the program, I could freely resize the window. One day, though, the window couldn't be resized vertically. Instead it was occupying the whole height of the physical screen.
It must be noticed, however, that I have /etc/X11/xorg.conf customized to produce a virtual screen, that is, a screen that is larger than the physical one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.