Skip to main content

Overview

SuperCmd supports global keyboard shortcuts for:
  1. Global launcher hotkey — Open SuperCmd from anywhere
  2. Per-command hotkeys — Launch specific commands directly
  3. Hyper Key — Remap a modifier key to Cmd+Ctrl+Option+Shift
  4. In-app shortcuts — Navigate within SuperCmd
All hotkeys work system-wide when SuperCmd is running in the background.

Global Launcher Hotkey

The primary shortcut to open SuperCmd. Default: Alt+Space (Option+Space) Configure:
  1. Open SuperCmd
  2. Search for “Settings”
  3. Navigate to General → Global Shortcut
  4. Click the field and press your desired key combination
Popular alternatives:
ShortcutNotes
Command+SpaceRequires disabling Spotlight in System Settings
Option+SpaceDefault (Alt+Space)
Control+SpaceMay conflict with input source switching
Command+Shift+SpaceGood alternative if Spotlight is enabled
Fn+SpaceUses the Function key (requires Input Monitoring)
Technical details: SuperCmd uses Electron’s globalShortcut.register() API, which requires Input Monitoring permission. Source: src/main/main.ts:186-205
globalShortcut.register(globalShortcut, () => {
  if (mainWindow.isVisible()) {
    mainWindow.hide();
  } else {
    mainWindow.show();
    mainWindow.focus();
  }
});

Per-Command Hotkeys

Assign global shortcuts to launch specific commands instantly, bypassing the launcher UI.

Setting Up Command Hotkeys

Via Settings UI:
1

Open a command

Search for any command in SuperCmd
2

Open Actions panel

Press Cmd+K or click the Actions icon
3

Choose 'Set Hotkey'

Select the action and press your desired key combination
Via settings.json:
{
  "commandHotkeys": {
    "supercmd-clipboard-history": "Command+Shift+V",
    "supercmd-window-management": "Control+Option+W",
    "supercmd-snippets": "Command+Shift+S",
    "com.raycast.extension.calculator": "Command+Shift+C"
  }
}

Command ID Format

  • Built-in commands: supercmd-{feature}
    • Example: supercmd-clipboard-history
  • Extension commands: {extension-name}#{command-name}
    • Example: github#search-repositories
  • Script commands: script:{filename}
    • Example: script:toggle-wifi.sh

Finding Command IDs

  1. Enable debug mode in Settings
  2. Open DevTools (Cmd+Option+I)
  3. Run a command
  4. Check console logs for the command ID
Or inspect ~/Library/Application Support/SuperCmd/settings.jsonrecentCommands array.

Hyper Key

SuperCmd includes a built-in Hyper Key feature that remaps a physical key to act as Cmd+Ctrl+Option+Shift simultaneously.

Use Cases

  • Remap Caps Lock to Hyper
  • Remap Right Option to Hyper
  • Create super-powerful shortcuts without finger gymnastics

Setup

1

Choose source key

Common choices:
  • Caps Lock (keycode 57)
  • Right Option (keycode 61)
  • Right Command (keycode 54)
2

Configure SuperCmd

{
  "hyperKeySource": 57,
  "hyperKeyIncludeShift": false,
  "hyperKeyQuickPressAction": "escape"
}
3

Test

Press your Hyper Key + any letter to create a unique shortcut

Hyper Key Settings

hyperKeySource
number | null
default:"null"
Keycode of the physical key to remap
hyperKeyIncludeShift
boolean
default:"false"
Include Shift in the Hyper combination (Cmd+Ctrl+Option+Shift)
hyperKeyQuickPressAction
string
default:"escape"
Action when Hyper Key is tapped (not held):
  • escape — Send Escape key
  • toggle-caps-lock — Toggle Caps Lock
  • none — Do nothing
hyperReplaceModifierGlyphsWithHyper
boolean
default:"false"
Show shortcut badges as “⌘Hyper” instead of ”⌘⌥⌃⇧“

How It Works

SuperCmd monitors keyboard events using CGEventTapCreate() and:
  1. Intercepts the source key press
  2. Suppresses the original key event
  3. Injects Cmd+Ctrl+Option (+ Shift if enabled)
  4. On release, removes all modifiers
  5. On quick tap, sends the quick-press action
Source: src/native/hotkey-hold-monitor.swift, src/main/main.ts (hyper-key IPC handlers)
Hyper Key requires Accessibility and Input Monitoring permissions.

In-App Shortcuts

Keyboard shortcuts within SuperCmd:
ShortcutAction
Cmd+KOpen Actions panel
Cmd+,Open Settings
Cmd+Shift+PCommand palette (extensions)
EscapeClose window / go back
Cmd+WClose window

Search & Filtering

ShortcutAction
/ Navigate results
EnterExecute selected command
Cmd+EnterExecute with modifiers
TabAutocomplete (if available)
Cmd+BackspaceClear search

List & Grid Views

ShortcutAction
Cmd+↓Show detail panel
Cmd+YQuick Look (if supported)
Cmd+CCopy selected item
Cmd+DToggle detail sidebar

Form Views

ShortcutAction
Tab / Shift+TabNavigate fields
EnterSubmit form
Cmd+EnterSubmit with metadata

Extension Shortcuts

Extensions can define custom shortcuts using the Keyboard.Shortcut type:
import { Action, ActionPanel } from "@raycast/api";

<Action
  title="Open"
  onAction={() => console.log("Opened")}
  shortcut={{ modifiers: ["cmd"], key: "o" }}
/>
Supported modifiers:
  • cmd — Command
  • ctrl — Control
  • opt / alt — Option
  • shift — Shift

Shortcut Format

SuperCmd uses Electron’s accelerator syntax:
Modifier+Modifier+Key
Examples:
  • Command+Shift+V
  • Control+Option+W
  • Alt+Space
  • Cmd+K
Modifiers:
  • Command / Cmd /
  • Control / Ctrl /
  • Option / Alt /
  • Shift /
Special keys:
  • Space, Tab, Enter, Escape
  • Up, Down, Left, Right
  • F1F24
  • AZ, 09

Conflict Detection

SuperCmd does not automatically detect conflicts with system shortcuts or other apps. Common conflicts:
ShortcutSystem Use
Command+SpaceSpotlight
Control+SpaceInput source switching
Command+TabApp switcher
Command+Option+DShow/hide Dock
Check System Settings → Keyboard → Keyboard Shortcuts for existing system shortcuts.

Troubleshooting

  1. Ensure Input Monitoring permission is granted
  2. Check for conflicts with other apps (BetterTouchTool, Alfred, Keyboard Maestro)
  3. Try a different key combination
  4. Restart SuperCmd
  5. Check console logs for registration errors
  1. Verify the command ID is correct in settings.json
  2. Ensure the extension is enabled
  3. Check for conflicts with system shortcuts
  4. Try unregistering and re-registering the hotkey
  1. Grant Accessibility permission
  2. Grant Input Monitoring permission
  3. Restart SuperCmd after granting permissions
  4. Check hyperKeySource keycode is correct
  5. Test with debug mode enabled (Cmd+Option+I)
This can happen if:
  1. Another app is capturing the same shortcut
  2. macOS Secure Input is enabled (check with Karabiner-Elements EventViewer)
  3. The app is running in the background but not receiving events
Solution: Use more unique shortcuts (e.g., Hyper Key combinations).
macOS reserves F1-F12 for system functions by default:
  1. Go to System Settings → Keyboard
  2. Enable Use F1, F2, etc. keys as standard function keys
  3. Or use Fn+F1 in shortcuts

Next Steps

Settings

All configuration options

Permissions

Required macOS permissions

Extensions

Install and manage extensions

Window Management

Use window tiling hotkeys

Build docs developers (and LLMs) love