A collection of scripts for Autokey that emulate macOS styled keyboard commands/sshortcuts in Linux and X11.
There are 2 different script packages available:
-
For unmodified command keys layout (where ctrl outputs
controland cmd outputssuper) -
For modified command keys layout (where ctrl outputs
superand cmd outputscontrol)⮡ Learn how to modify the layout.
-
Install AutoKey using your package manager or following AutoKey installation instructions.
-
Clone or download the
macOS-defaultfolder to~/.config/autokey/data/. -
Modify individual scripts in AutoKey to prevent an interference with default terminal shortcuts:
Replace the
'xfce4-terminal.Xfce4-terminal'part with the terminal class name of your choice.To get the class name, open terminal, then open AutoKey, click on
Window Filter -> Detect Window Properties -> click on terminal windowand AutoKey will show you the name as Window class. Don't forget to cancel the Window Filter settings. -
Enable AutoKey at login:
AutoKey -> Edit -> Preferences -> Automatically start Autokey at login.
-
Install AutoKey using your package manager or following AutoKey installation instructions.
-
Unbind AutoKey's configuration hotkey:
AutoKey -> Edit -> Preferences -> Special hotkeys -> Show configuration window using a hotkey -> Clear -
Clone or download the
macOS-switchedfolder to~/.config/autokey/data/. -
Modify individual scripts in AutoKey to prevent an interference with default terminal shortcuts:
Replace the
'xfce4-terminal.Xfce4-terminal'part with the terminal class name of your choice.To get the class name, open terminal, then open AutoKey, click on
Window Filter -> Detect Window Properties -> click on terminal windowand AutoKey will show you the name as Window class. Don't forget to cancel the Window Filter settings. -
Enable AutoKey at login:
AutoKey -> Edit -> Preferences -> Automatically start Autokey at login.
- Command key input in terminals is troublesome, since macOS uses ctrl for all terminal operations. While the provided scripts provide a workaround for this, you won't be able to use these in built-in terminals (i.e. VS Code).