Hot answers tagged

3

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


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 ...


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 ...


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

Some common ones for KDE4 are in ~/.kde4/share/config/kwinrc. But some configs are app-controlled. Many apps have their config files in the same dir.


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

I had this exact same problem. So I wrote a shell script that I bound to a hotkey. When I hit the hotkey, it gets the window id of the currently active window (the one that has focus). Then it gives you a popup dialog where you enter the title you want that window to have. Then every time that window changes its name, it changes it back to the title you ...



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