You could try changing ⌥⇧⌘Q to ⌥⌘Q with KeyRemap4MacBook.
<?xml version="1.0"?>
<root>
<item>
<name>test</name>
<identifier>private.test</identifier>
<autogen>--KeyToKey-- KeyCode::Q, VK_OPTION | VK_SHIFT | VK_COMMAND, KeyCode::Q, VK_COMMAND | VK_OPTION</autogen>
</item>
</root>
You can use Automator to create a service for this. Open Automator and click “New Document,” then choose the Service template:
Next, click on the “Service receives selected text” dropdown and choose “no input:”
Next, add a “Run AppleScript” action:
- Click “Actions” in the sidebar
- Ensure the “Library” row in the first column is selected
- Search for “AppleScript”
- Double-click the “Run AppleScript” row in the search results
In the action on the right side of the window, paste this AppleScript into the text box:
on run {input, parameters}
tell application "System Events"
repeat 2 times
keystroke tab
end repeat
keystroke (ASCII character 31) -- down arrow
keystroke "s"
repeat 2 times
keystroke return
end repeat
end tell
return input
end run
Next, click the “compile” () button to verify that the code was pasted correctly:
Choose File → Save (or ⌘ + S), and type in a name you’ll remember. Next, open System Preferences ( → System Preferences…) and click “Keyboard.” Under the “Shortcuts” tab, select “Services” in the left list. Scroll to the bottom of the main list, under the “General” section, and select the service you just created. Click the “Add Shortcut” button and type the keyboard shortcut you’d like to use.
The shortcut should now work.
Based on the other answer
Best Answer
The following was created, tested and works for me in macOS High Sierra.
Create the Automator service...
In Automator:
Example AppleScript code:
Assigning the keyboard shortcut...
In System Preferences...
System Preferences > Keyboard > Shortcuts > Services add ⇧⌘C (press Shift-Command-C) to the My Terminal Interrupt service, as shown in the image below.
Terminal already uses ⇧⌘C for the Edit menu > Show Colors command, so you'll need to change that to e.g. ^⇧⌘C (Control-Shift-Command-C).
Changing the default keyboard shortcut...
System Preferences > Keyboard > Shortcuts > App Shortcuts
[+]
buttonNow when in Terminal and I need to interrupt a running command, I press ⇧⌘C instead of ^C
(or ⌘.) to stop the process.