Discovering that wmctrl is a REALLY useful tool to have on X11 and works great on elementary OS/GNOME.
Examples:
See list of all current windows with their geometry:
wmctrl -l -G
Move a window with the class name org.small_tech.comet to position (100,100) and size it to its minimum size:
wmctrl -x -r org.small_tech.comet -e 0,100,100,0,0
Show the desktop (hide all apps):
wmctrl -k on
Learn more: https://www.freedesktop.org/wiki/Software/wmctrl/
#linux #wmctrl #WindowManager #cli #x11
@aral I wrote a couple of Linux Journal articles back in the day about wmctrl that you might find useful:
https://www.linuxjournal.com/magazine/hack-and-automate-your-desktop-wmctrl
https://www.linuxjournal.com/magazine/hack-and-lightning-hacks
@kyle Oh neat, thanks, Kyle; will check them out :)
Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy. Stay safe. Please abide by our code of conduct. (Source code)
@kyle Oh neat, thanks, Kyle; will check them out :)