Hot answers tagged

3

screen -Q windows will print out your active screen windows with index & title.


2

A program that monitors window creation doesn't come to mind, but you don't need that. You can run wmctrl -l in a loop or on a timer (e.g. sleep 10; wmctrl -l) and then start the fullscreen application and record its window properties. If you want more information, you can do something like sleep 10; xprop After 10 seconds, the mouse cursor will change; ...


2

You have few options: if this is possible configure application itself via config file or some clickable menu. certain applications support geometry changing from .Xresources (or .Xdefaults) file. If neither of the above is possible then you need to use external tool to change window properties. One of the better choice can be wmctrl software - you can ...


2

Window IDs are given out by the X server. The window manager doesn't get a say. Window IDs encode the client that the window belongs to in the upper 12 bits. The lower 12 bits are assigned sequentially at first, but if an intermediate number becomes free, it can be reused. So comparing window IDs does not give a reliable indication of which window was ...


1

It is a bit excessive, but you can start a 2nd X11 server with no framebuffer and direct your display there: Xvfb :1 & sleep 2 DISPLAY=:1 xfoil <controlfile.xfoil >outputfile.out kill -15 $!


1

Knowing that the desktop wallpaper could be a child window created by xfdesktop, a lead to follow could be exploring the content of the X windows list with the command: xwininfo -tree -root excerpt of the output ("Scrivania" simply meaning "Desktop" in english): 0x800744 (has no name): () 4x538+736+30 +755+50 0x800743 (has no name): () 4x541+0+...


1

resize (a utility provided with xterm) can resize most xterm-like windows. To get 30 rows by 60 columns, the script would run resize -s 30 60 to resize the window within which it is running. In a quick check, mlterm, mrxvt, urxvt, vte (e.g.,. gnome-terminal) and xterm respond to the escape sequence. KDE konsole does not, nor does st or terminology. ...


1

First if you aren't sure of what you are doing, make a backup of your important data. Then you have to follow 3 steps : Open GParted and resize your linux partition(s) in order to have at least 20Gb of free space. Boot on the Windows installation DVD/USB and select "Unallocated space" to not override your linux partition(s). Finally you have to boot on a ...


1

Run xprop _NET_WM_PID or xdotool selectwindow getwindowpid from a terminal then click on a window to see the process ID of the process that owns that window. (This works often but not always, see What process created this X11 window? for caveats.) One you have the process ID (e.g. 1234), ps -p 1234 -o args or ls -l /proc/1234/exe tells you what command the ...


1

My guess is that they are like PIDs, allocated in ascending order, except when they are not: PIDs wrap around. Let us assume (for now) that they only go up. What would happen on a system that is running for a very long time? Id will get too big, or ID size must be allowed to grow, 32bit, 64bit, 128bit … If they had to go up only then they could run out, ...


1

I found xdotool to be flaky/buggy, sometimes it closes the foreground window instead of the one that should be closed. This seems to be due to the way that keys are sent after bringing the window to the foreground instead of directly sending window events, and it's a very annoying issue. I suggest using wmctrl, which directly closes a window without sending ...


1

You can use the tool called, "xdotool" to control window size and location. Not only that, any script you write in bash, using xdotool, can be setup to work with fully maximized window and it can be scripted to set the window size any x:y coordinates by manipulating the mousemove and "click" commands.



Only top voted, non community-wiki answers of a minimum length are eligible