Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use ALL of the mac keyboard shortcuts for everything in Unity.

Example: Copy (CMD+C), Paste (CMD+P), etc.

I have not found a way to do this where CMD is the modifier key instead of CTRL, whilst CTRL still acts "normal" in terminal (say quitting a process with CTRL+C).

Any ideas?

share|improve this question
    
As far as I know, it's not possible to change system shortcuts like copy and paste (at least without recompiling most of the OS). It's also not possible to change application shortcuts like quit globally (though it is possible to change these one at a time). The only (easy) way to get the kind of behaviour you want is to write a pair of layouts (one that swaps Ctrl and Super/Cmd, one that unswaps them), then manually change layouts when you switch to the Terminal. If this is acceptable for you, I can show you how to do it (I'll probably write it out anyway). –  pconley Jul 10 '12 at 23:06
    
Thanks for the offer @pconley, a write up for anyone who searches might be super useful - but this doesn't quite scale. I did attempt this for a while with xmodmap, and a few other applications that sat on top of the window manager (or input manager in this case). It worked in most cases, but not all. It's kind of weird though that KDE actually has a layout like this, with the shortcuts set - but Unity or Gnome do not. Kind of saddens me. Maybe I'll go with KDE if this is one of my biggest annoyances/requirements with linux (always has been since I started using it many eons ago). –  Chris Jul 11 '12 at 22:17

1 Answer 1

Macintosh keyboard layouts are available on Ubuntu. Go to System Settings > Keyboard Layouts.

In this window, you can manage your keyboard layouts, i.e. you can add Macintosh layouts and set them by default. ;-)

share|improve this answer
    
Perhaps I'm dense, but I don't see that as mapping copy, paste, etc? Or do I need to restart compiz/unity? –  Chris Jul 10 '12 at 20:14
    
No, you don't need to restart anything. –  air-dex Jul 10 '12 at 21:21
1  
The Macintosh keyboards only add third- and fourth-level symbols; they don't alter Ctrl or Super. –  pconley Jul 10 '12 at 23:00
    
@pconley Thank you. That's what I thought. So basically the functionality I am looking for isn't done with the keyboard layout (as I suspected in the first place). Know of any other way? –  Chris Jul 11 '12 at 15:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.