I am using Xubuntu desktop, I want to use a keybind (application shortcuts in settings) to activate a command to resize the current window to a predetermined size.
For example: wmctrl -r Firefox -e 1,-1,-1,1000,600
resizes any an active firefox window to 1000x600.
The problem is it only works for Firefox, I want to do it to the currently active window (by which I mean the window that has focus).
I know xdotool getwindowfocus getwindowname gives me the current window
but wmctrl -r xdotool getwindowfocus getwindowname -e 1,-1,-1,1000,600 does nothing.
Is there anyway to do this? My guess is maybe I have to use a pipe but I'm not sure.