I have a situation where a certain application (VirtualBox) doeesn't correctly resize windows on my tiled window manager.
I want to be able to trigger a resize via an event, preferably generically so it will cover all windows (not just VirtualBox). It doesn't need to resize the window, just tell the window that the WM has triggered a resize event. How can I achieve such a resize via a command?
I think XSendEvent
+XResizeWindow
would do what I need it to, but I can't see any way of invoking those from bash or similar. I would have thought xdotool
or similar would achieve this but it can't. I'm also open to other events or hacks that would trigger what I need to also.
xev
orxtrace
, but that would slow down your computer. That is the only method I can think of that would detect a resize event. Another option would be to link a bash script to a keyboard combination. Every time you make a resize, which requires manual intervention, press that combination. I would also recommendwmctrl
to control windows.