This repository is for people dealing with two of more among MacOS, Linux/Gnome and Linux/Mate. Linux/KDE or other OSes not supported yet (but should be easy to add, please contribute).
Dealing with different keyboard shortcuts uses a lot of mental energy, so to maintain focus on the task at hand (as opposed to which keys to press) one has to change shortcuts for one or more of these machines. This repository changes some of the shortcuts for Linux, and this README suggests a few additional changes, including ones for Mac OS.
Best results will be achieved if you use identical keyboards across all your machines.
-
Install autokey on your Linux box(es) with
sudo apt-get install autokey
oryum install autokey-gtk
orpip
. See autokey instructions if you need details. -
Fork this repository (optional but recommended)
-
Clone your fork (or this repository, if you did not fork)
-
Point autokey to the directory
add-MacOS-shortcuts-to-Linux
, e.g. by putting a hard or symbolic link to it in~/.config/autokey/data/
-
(optional) Point autokey to the directory
remove-Linux-shortcuts/
, as above. This will make sure the old shortcuts (e.g. CTRL-C in text editors) do not work anymore, so you can not inadvertently use them and be stuck in the rut.
Unrelated to this repository, but related with having sane shortcuts...
- Install
iterm2
and set the shortcuts for "move one word" as described here. You will also need the "move to begin/end of line" and the corresponding "select" to work as in the other apps. Unfortunately this requires manual configuration. If you use the regularterminal
application, you will also need to change its shortcuts. In fact (like on Linux) there are some differences between terminal and non-terminal shortcuts, not sure why anybody thought that was a good idea...
-
Configure your Virtual Desktop switcher to use
CTRL-arrows
as Spaces do on the Mac (this will break the move-by-one-word, but that is fixed by autokey with the scripts in this repository). Also, arrange your Virtual Desktops on a single line, as Space do on the Mac, and set them to the same number. -
Configure the shortcut to lock the screen from
CTRL-L
toCTRL-CMD-q
.
On Mate you can do the last two items by opening the
Control Center and selecting Keyboard Shortcuts
.
On Gnome, proceed as described here
Please submit an issue and I will be happy to respond!
Do also submit Pull Requests: Pull Requests are very welcome to improve anything, especially wrong or incomplete shortcuts, including ones for Linux/KDE or other OSes.