On Debian 13 with GNOME, you can resize a window using the command line with tools like xdotool or wmctrl. Here’s how you can do it:
First, ensure you have xdotool and wmctrl installed:
bashsudo apt update sudo apt install xdotool wmctrl
You need the window ID or name of the window you want to resize. Use:
bashxdotool selectwindow
Click on the window you want to resize, and it will output the window ID.
Alternatively, list all windows:
bashwmctrl -l
xdotool:bashxdotool windowsize <window_id> <width> <height>
Replace <window_id> with the ID from the previous step, and <width> and <height> with your desired dimensions.
wmctrl:bashwmctrl -i -r <window_id> -e 0,<x>,<y>,<width>,<height>
<x> and <y> are the window’s position (use -1 to keep the current position).<width> and <height> are the new dimensions.To resize the active window to 800x600 pixels:
bashxdotool getactivewindow windowsize 800 600
Or with wmctrl:
bashwmctrl -i -r $(xdotool getactivewindow) -e 0,-1,-1,800,600
This Chat is read-only. Login to resume chatting.