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: freedesktop.org/wiki/Software/

#linux #wmctrl #WindowManager #cli #x11

@kyle Oh neat, thanks, Kyle; will check them out :)

Sign in to participate in the conversation
Librem Social

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)

image/svg+xml Librem Chat image/svg+xml