Redefine your builtin MacOS default keyboard shortcuts using Karabiner-Elements. Binding two specific keybindings to vk_none resulting in effectively disabling the named keybinding.
In Karabiner-Elements the vk_none
keycode means virtualkeyboard none.
Use it when you want to disable any existing keybinding, or perhaps as some boilerplate for your not yet implemented keybindings.
This demo shows you how to disable the application switcher (command+tab), and/or application quit (command+q) keybinding. Nothing fancy about this config at all, but I have some ideas on how to improve this.
I will update this gist as I update my local configuration.
You're a king, Jimmy! Disabling cmd + tab will be a boon for my productivity.
Just to clarify, I didn't want to disable cmd + q, I wanted cmd + tab to replace cmd + q, so if I tried to cmd + tab it would close the current application. My thinking was that would train me off of cmd + tab quickly.
This is great though and is exactly what I needed. Thanks!