Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making Mac shortcuts (e.g. Cmd-C) work on linux

Is there a way to map Cmd+C to Copy in linux? (instead of Ctrl+C)

Would be nice if I could also have the emacs style ones, like Ctrl+B to move left by one character.

like image 921
Chris Avatar asked Jan 12 '09 00:01

Chris


People also ask

What is CMD C on Mac?

Command-C: Copy the selected item to the Clipboard. This also works for files in the Finder. Command-V: Paste the contents of the Clipboard into the current document or app. This also works for files in the Finder.


1 Answers

Is there a way, on Linux/X, to map certain key combos to other key combos?

In the tradition of all open source projects, there's not a way, there are several. At the lowest level you've got kernel keybindings, which is probably not what you want. At the X server level you've got xkb with its myriad utilities. And then it seems that every window manager - gnome, kde, xfce or other - also has a keymapping utility. xkb seems to have lots of utils and such around it, and is likely more complete than any random window manager's keymapping utils, so I'd look at that first.

like image 184
pjz Avatar answered Sep 22 '22 22:09

pjz