brpaz
2/3/2019 - 10:42 AM

Set window size with xdtool

Set window size with xdtool #xdtool #linux

Set window size with xdtool

Find the window ID:

xdotool search --onlyvisible --name firefox

Set the window size

xdotool windowsize $WINDOW_ID_GOES_HERE $WIDTH $HEIGHT

Move the window

xdotool windowmove $WINDOW_ID_GOES_HERE $X $Y

For example, if the window id for firefox is 123 you would do this:

xdotool windowsize 123 800 600