How to Create a Minimize All Windows (Win + M) Hotkey for Mac OS X

Last Updated: Feb 10, 2024 by

If you’re a Windows user who has recently switched to a Mac, you may have noticed that some of your favorite keyboard shortcuts are missing. One of the most commonly used shortcuts on Windows is the “Win + M” hotkey, which minimizes all open windows and shows the desktop. This can be a useful shortcut for quickly accessing files or folders on your desktop without having to manually minimize each window.

But fear not, Mac users! You can easily create a similar hotkey for your Mac using a few simple steps. In this article, we’ll show you how to create a “minimize all windows” hotkey for Mac OS X, so you can save time and increase your productivity.

Why Use Hotkey Shortcuts on Mac OS X?

Hotkey shortcuts, also known as keyboard shortcuts, are combinations of keys that perform a specific action on your computer. They can save you time and effort by allowing you to perform tasks quickly without having to navigate through menus or use your mouse.

On Mac OS X, there are already many built-in hotkey shortcuts that you can use, such as “Command + C” for copying and “Command + V” for pasting. However, if you’re used to using a specific hotkey on Windows, it can be frustrating to not have it available on your Mac. That’s where creating custom hotkeys comes in handy.

The Benefits of Creating Custom Hotkeys

Creating custom hotkeys on your Mac can provide several benefits, including:

  • Increased productivity: By using hotkeys, you can perform tasks faster and more efficiently, saving you time and increasing your productivity.
  • Personalization: You can customize hotkeys to fit your specific needs and preferences, making your computer experience more personalized.
  • Accessibility: Hotkeys can be especially useful for individuals with disabilities or mobility impairments, as they provide an alternative way to perform tasks without using a mouse.

How to Create a Minimize All Windows Hotkey for Mac OS X

Now, let’s get into the steps for creating a “minimize all windows” hotkey for your Mac.

Step 1: Open Automator

The first step is to open Automator, which is a built-in application on Mac OS X that allows you to create custom workflows and applications. You can find it by searching for “Automator” in Spotlight or by navigating to Applications > Automator.

Step 2: Create a New Service

Once Automator is open, click on “File” in the menu bar and select “New” > “Service”. This will open a new window where you can create your custom hotkey.

Step 3: Configure the Service

In the top right corner of the window, make sure that “Service receives no input in any application” is selected. Then, in the left sidebar, select “Utilities” and drag the “Run AppleScript” action into the main window.

Step 4: Enter the AppleScript Code

In the “Run AppleScript” action, delete the default code and paste in the following code:

tell application “System Events” key code 12 using {command down} end tell

This code will simulate the “Command + M” hotkey, which is the equivalent of “Win + M” on Windows.

Step 5: Save the Service

Next, click on “File” in the menu bar and select “Save”. Give your service a name, such as “Minimize All Windows”, and make sure that “Service” is selected as the file format. Then, click on “Save”.

Step 6: Assign a Hotkey

Now, it’s time to assign a hotkey to your new service. Open System Preferences and click on “Keyboard”. Then, select the “Shortcuts” tab and click on “Services” in the left sidebar.

Scroll down until you see your newly created service, “Minimize All Windows”. Click on the right side of the service name and select “Add Shortcut”. Then, press the keys you want to use as your hotkey. In this case, we’ll use “Command + M”.

Step 7: Test Your Hotkey

Once you’ve assigned your hotkey, go ahead and test it out! Open a few windows on your Mac and press your hotkey. All of the windows should minimize, revealing your desktop.

Other Useful Hotkey Shortcuts for Mac OS X

Now that you know how to create a custom hotkey, here are a few other useful hotkey shortcuts for Mac OS X that you may find helpful:

  • “Command + H”: Hides the current window.
  • “Command + W”: Closes the current window.
  • “Command + Q”: Quits the current application.
  • “Command + Space”: Opens Spotlight, allowing you to search for files, folders, and applications.
  • “Command + Tab”: Switches between open applications.
  • “Command + Shift + 3”: Takes a screenshot of the entire screen.
  • “Command + Shift + 4”: Allows you to select a specific area of the screen to take a screenshot of.

Tips for Creating Custom Hotkeys on Mac OS X

When creating custom hotkeys on your Mac, keep these tips in mind:

  • Avoid using hotkeys that are already in use: Before assigning a hotkey, make sure it’s not already being used by another application or system function.
  • Use easy-to-remember combinations: Choose hotkey combinations that are easy to remember and don’t require too much finger stretching.
  • Test your hotkeys: After creating a custom hotkey, test it out to make sure it’s working as expected.
  • Be careful with system hotkeys: Be cautious when creating hotkeys that use system functions, as they can cause unexpected behavior.


Creating custom hotkeys on your Mac can save you time and increase your productivity. By following the steps outlined in this article, you can easily create a “minimize all windows” hotkey for your Mac, as well as other useful hotkey shortcuts. So go ahead and give it a try, and see how much easier your computer experience can be with custom hotkeys.

Gulrukh Ch

About the Author: Gulrukh Ch

Gulrukh Chaudhary, an accomplished digital marketer and technology writer with a passion for exploring the frontiers of innovation. Armed with a Master's degree in Information Technology, Gulrukh seamlessly blends her technical prowess with her creative flair, resulting in captivating insights into the world of emerging technologies. Discover more about her on her LinkedIn profile.