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:
sudo apt update
sudo apt install xdotool wmctrlYou need the window ID or name of the window you want to resize. Use:
xdotool selectwindowClick on the window you want to resize, and it will output the window ID.
Alternatively, list all windows:
wmctrl -lxdotool:xdotool windowsize <window_id> <width> <height>Replace <window_id> with the ID from the previous step, and <width> and <height> with your desired dimensions.
wmctrl:wmctrl -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:
xdotool getactivewindow windowsize 800 600Or with wmctrl:
wmctrl -i -r $(xdotool getactivewindow) -e 0,-1,-1,800,600Vibe can make mistakes. Check answers. Learn more