You're using the wrong window manager. You can do what you want with xdotool and a lot of scripting, but there are better window managers designed around controlling every aspect of windows with bindings and commands. Herbstluftwm is a good one, bspwm is another. i3 is less scripting focused, but is still fairly controllable with the CLI tool.
this post was submitted on 21 Feb 2025
6 points (100.0% liked)
Linux
2720 readers
7 users here now
Shit, just linux.
Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts
founded 2 years ago
MODERATORS
You'll need to write an extension to get access to scripting and hotkeys which will then allow you to do that.
It might be easier to do with KWin since it's got pretty good scripting out of the box and good documentation about it, but should be doable on Gnome too.