xdotool `windowsize` and `windowmove` don't work in GNOME when the window is full sized
In your script, you will need to make sure that the window is not maximized. Remove the maximized_vert
and maximized_horz
using wmctrl
first before manipulating it further with xdotool
.
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && \
xdotool getactivewindow windowsize 50% 100% && \
xdotool getwindowfocus windowmove 0 0
The above works with X.Org. I want to inform other readers that these tools only work in a very limited way on Wayland.