M HYPE SPLASH
// news

Trigger window resize in non-active window

By Emma Valentine

I would like to trigger a resize command (specifically, something similar to the "begin-resize" keybinding we can configure in org.gnome.desktop.wm.keybindings, or via the GUI as shown in the attached image) in a window, for automation purposes, using a regular command (that can be run from a terminal or script). How can I find the command that correspond to that shortcut?

Keyboard shortcuts on Ubuntu

1 Answer

You can use xdotool to do this sort of thing, it has options to search for the window you want to operate on and commands for resizing and much much more.

Put your commands in a script then add a keyboard shortcut of your choosing to execute the script.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy