Skip to content

This repository provides a custom configuration file for Karabiner-Elements that adds PC-style keyboard shortcuts and keybindings to a MacOS system.

License

Notifications You must be signed in to change notification settings

patrickdobler/karabiner-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karabiner-Elements Configuration for MacOS

This repository contains a custom configuration file for Karabiner-Elements, a powerful keyboard customization tool for MacOS. This configuration provides PC-style keyboard shortcuts and keybindings for various functions on a MacOS system.

Installation

  1. Download and install Karabiner-Elements from here.
  2. Clone this repository to your local machine or download the personal_shortcuts.json file.
  3. Open Karabiner-Elements and go to the "Misc" tab.
  4. Click "Open Karabiner-Elements Configuration Directory" to navigate to your Karabiner-Elements configuration folder.
  5. Within the "assets" folder, create a new folder called "complex_modifications" if it doesn't already exist.
  6. Move the personal_shortcuts.json file to the "complex_modifications" folder.
  7. Open Karabiner-Elements and go to the "Complex Modifications" tab.
  8. Click on the "Add rule" button and click on Enable All for Personal PC-Style Shortcuts
  9. Reload Karabiner-Elements to apply the new configuration.

Now you should be able to use the new keybindings on your Mac. If you need to modify or add new keybindings, you can edit the personal_shortcuts.json file and reload Karabiner-Elements to apply the changes.

Keybindings

The following are the keybindings provided by this configuration:

Navigation

  • Home to Control+A: moveToBeginningOfLine
  • End to Control+E: moveToEndOfLine
  • Shift+Home to Shift+Command+Left: moveToBeginningOfLineAndModifySelection
  • Shift+End to Shift+Command+Right: moveToEndOfLineAndModifySelection
  • Shift+Control+Home to Shift+Command+Up: moveToBeginningOfDocumentAndModifySelection
  • Shift+Control+End to Shift+Command+Down: moveToEndOfDocumentAndModifySelection
  • Control+Home to Command+Up: moveToBeginningOfDocument
  • Control+End to Command+Down: moveToEndOfDocument

PC-Style

  • PC-Style Control+Up/Down/Left/Right
  • PC-Style Copy/Paste/Cut Control+C/V/X
  • PC-Style Undo (Swiss Keyboard Z/Y swapped)
  • PC-Style Redo Control+Y
  • PC-Style Select-All Control+A
  • PC-Style Save Control+S
  • PC-Style Quit Application (Command+F4 to Command+Q)
  • PC-Style Browser Zoom (Control+Plus/Minus/0)
  • PC-Style Control+Delete/Backspace: deleteWordBackward, deleteWordForward
  • PC-Style Find Control+F/G
  • PC-Style Reload (F5, Control+R)
  • PC-Style New Document (Control+N to Command+N)
  • PC-Style Close (Control+W to Command+W)
  • PC-Style New Tab (Control+T to Command+T)
  • PC-Style Bold (Control+B to Command+B)
  • PC-Style Italic (Control+I to Command+I)
  • PC Style Open URL location - only in browsers (Control+L to Command+L)
  • PC Style Reopen Closed Tab - only in browsers (Control+Shift+T to Command+Shift+T)
  • PC Style New Private Window - only in browsers (Control+Shift+P/N to Command+Shift+P/N)
  • PC Style Lock Computer (Option+L to Control+Command+Q)

Miscellaneous

  • Paste without formatting Control+Shift+V to Command+Option+Shift+V
  • Open Launchpad with Control+Esc
  • Open Activity Monitor with Control+Shift+Esc
  • Open Ghostty with F15
  • Press CAPS LOCK twice to activate, otherwise held down and use as HYPER (Control+Command+Shift+Option)
  • Avoid starting sysdiagnose with the built-in macOS shortcut Control+Command+Shift+Option+,
  • Avoid starting sysdiagnose with the built-in macOS shortcut Control+Command+Shift+Option+.
  • Enter is the same as Return (Keypad Enter to Return)
  • Remap closing an application (Hyper+Shift+Space to Command+Q)

Swiss Keyboard Special Characters

  • Swiss PC-Style Command+[è/ü] to [
  • Swiss PC-Style Command+[3] to #
  • Swiss PC-Style Command+[7] to |
  • Swiss PC-Style Command+[¨] to ]
  • Swiss PC-Style Command+[2] to @
  • Swiss PC-Style Command+[à/ä] to {
  • Swiss PC-Style Command+[$] to }
  • Swiss PC-Style Command+[<] to \
  • Swiss PC-Style Command+['] to ´
  • Swiss PC-Style Command+[^] to ~
  • Swiss PC-Style Command+[e] to

Yabai Window Tiling Manager

  • Rotate/mirror/balance spaces (HYPER+R | HYPER+Z/X | HYPER+B)
  • Toggle float and zoom (HYPER+T | HYPER+G/F)
  • Warp windows between displays (HYPER+A/W/S/D)
  • Resize windows (HYPER+J/I/K/L)
  • Stack navigation | windows focus (HYPER+Tab | HYPER+E/Q)
  • Layout configuration stack|bsp|float (HYPER+C | HYPER+P | HYPER+N)
  • Switch to desktop layout (HYPER+M)
  • Restart service (HYPER+Y)

Browser-Specific Features

  • Firefox Open Container (Control+Number 1-9)
  • Browser zoom controls for Firefox, Safari, Brave, and Perplexity Comet

Finder

  • Use F2 as Rename
  • Move one folder back in Finder with Mouse Button 4
  • Move one folder forward in Finder with Mouse Button 5

Remote Desktop Manager (RDM)

  • Move one folder forward in Explorer with Mouse Button 6
  • Move one folder back in Explorer with Mouse Button 4

Compatibility

The configuration automatically excludes the following virtualization and remote desktop applications to prevent conflicts:

  • TeamViewer
  • Parallels Desktop
  • Remote Desktop Manager

Additional Configuration

image image image image image

Contributing

Feel free to contribute to this repository by submitting pull requests or suggesting new keybindings. Any feedback or suggestions are greatly appreciated.

Credits

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository provides a custom configuration file for Karabiner-Elements that adds PC-style keyboard shortcuts and keybindings to a MacOS system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages