Skip to content

Instantly share code, notes, and snippets.

@brpaz
Created February 3, 2019 10:42
Show Gist options
  • Save brpaz/389b6587c03f5f55342ecb616b0fd0e2 to your computer and use it in GitHub Desktop.
Save brpaz/389b6587c03f5f55342ecb616b0fd0e2 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment