Before switching to Wayland I would minimise all GNOME Shell windows with the following command:

wmctrl -k on

...but both wmctrl and xdotool are X11-only applications. What CLI command can I use to minimise all windows in a GNOME Shell / Wayland session?



TL;DR You can still do that

While xdotool uses X11 APIs and therefore will not work on Wayland, wmctrl interacts with the desktop environment itself. Therefore, while its commands requiring X11 APIs will not work, you can still use many wmctrl commands in a Wayland session, -k on included.

Tested on Arch Linux using GNOME Shell 3.30.2 and wmctrl 1.07.

| improve this answer | |
  • 4
    It only works with X windows, wayland native applications are not supported (listed). – Dyorgio Aug 5 '19 at 0:24

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.