⌘⇥ in Dock order for macOS
Download ·
macOS 13 or later · Apple silicon and Intel · Free and open source
A small menu bar app that makes ⌘⇥ go through your apps in Dock order instead of "most recently used". Everything else about the Dock and the switcher stays as you know it.
Order shown in the switcher:
- Finder (always first, as in the Dock)
- Apps kept in your Dock, in the order you arranged them (rearranging the Dock takes effect immediately)
- A divider, then other running apps in the order you opened them
Requires macOS 13 or later, on Apple silicon or Intel.
- Download
Dockstep-<version>.zipfrom the latest release. - Unzip it and move Dockstep to your Applications folder.
- Open it. Dockstep isn't notarized by Apple yet, so the first time macOS says it can't
verify the app. Click Done, open System Settings › Privacy & Security, scroll down,
click Open Anyway next to the Dockstep message and confirm. You only need to do this once.
(Or in Terminal:
xattr -dr com.apple.quarantine /Applications/Dockstep.app) - A short welcome message explains the keys; the settings are in its menu bar icon.
Dockstep needs no Accessibility or other permissions. To start it automatically, turn on Open at Login in its menu bar icon.
With the Xcode Command Line Tools (xcode-select --install):
./build.sh --installThis builds build/Dockstep.app, copies it to /Applications and starts it.
- Set the new version in
VERSIONand add an entry toCHANGELOG.md. - Run
./build.sh --release. It builds for Apple silicon and Intel, signs with your Developer ID certificate, notarizes with Apple (using the notarytool keychain profiledockstep) and writesdist/Dockstep-<version>.zip. - Tag the commit (
v<version>) and attach the zip to a GitHub release.
Hold ⌘ and:
| Key | Does |
|---|---|
| Tab / ⇧Tab | next / previous app |
| ← / → | move left / right |
| 1 … 9, 0 | jump straight to that position and switch |
| Return | switch now |
| Q | quit the selected app |
| H | hide / show the selected app |
| Esc | cancel |
Release ⌘ to switch to the selected app. You can also hover and click with the mouse.
- Use Dock order for ⌘⇥: turn Dockstep off without quitting (the built-in switcher comes back).
- First ⌘⇥ press selects
- the next app after the current one (default): one ⌘⇥ moves one step right in the Dock.
- the first app in the Dock: each app is always the same number of Tab presses away.
- Also show Dock apps that aren't running: keeps the positions fixed even when apps are closed. Picking one opens it.
- Position numbers: for the ⌘-number jump, shown as a small ⌘3 badge on each icon's top-right corner (default, takes no extra space), as a row above or below the icons, hidden (the ⌘1…⌘0 shortcuts keep working) or off (no numbers and no ⌘1…⌘0).
Dockstep is in English and German; it follows the language set in
System Settings › General › Language & Region. Translations are in
Resources/<language>.lproj/Localizable.strings, with the English text as the key.
- The built-in ⌘⇥ is switched off with the private WindowServer function
CGSSetSymbolicHotKeyEnabled, the same approach AltTab uses, and ⌘⇥ is registered as a normal global hotkey instead. - The Dock order is read from the Dock's own preferences (
com.apple.dock→persistent-apps). - Releasing ⌘ is detected by checking the modifier keys while the switcher is open.
Dockstep turns the built-in switcher back on when you quit it, when it is ended from
Activity Monitor and when it crashes. Only a forced kill -9 skips that. In that case, run:
/Applications/Dockstep.app/Contents/MacOS/Dockstep --restore-cmd-tabbuild/Dockstep.app/Contents/MacOS/Dockstep --print-order # list apps in switcher order
build/Dockstep.app/Contents/MacOS/Dockstep --print-order --all # include Dock apps that aren't running
build/Dockstep.app/Contents/MacOS/Dockstep --snapshot panel.png # render the panel to an image (--demo: Apple apps, --framed: with shadow)
# (--dark, --numbers badge|top|bottom|hidden|off)
build/Dockstep.app/Contents/MacOS/Dockstep --print-menu # print the menu as text
build/Dockstep.app/Contents/MacOS/Dockstep --print-menu -AppleLanguages '(en)' # …in another languageThe README screenshots are rendered with standard Apple apps, so they never show your own:
B=build/Dockstep.app/Contents/MacOS/Dockstep
$B --snapshot docs/switcher-light.png --demo --framed --numbers badge -AppleLanguages '(en)'
$B --snapshot docs/switcher-dark.png --demo --framed --numbers badge --dark -AppleLanguages '(en)'The app icon is drawn in code. To change it, edit Tools/make-icon.swift and regenerate
Resources/AppIcon.icns:
swiftc Tools/make-icon.swift -o /tmp/make-icon && /tmp/make-icon Resources/AppIcon.icnsCopyright © 2026 akitogo
Dockstep is free software: you can use, study, share and change it under the terms of the GNU General Public License v3.0. If you distribute it, modified or not, you must make the complete source code available under the same license.