After having been a Mac user since the classic MacOS days, I recently switched to Debian / Gnome. I knew it would involve major adjustments getting used to the new UI and that's fine. One thing I have trouble getting used to though with 20+ years of muscle memory are the keyboard shortcuts.
The Cmd key on the Mac serves the functions of both Ctrl and Super keys on Linux. Also, many keyboard shortcuts are implemented on the system level and work in all apps. Some examples:
| Linux | Mac | |
|---|---|---|
| cycle apps | Sup-Tab | Cmd-Tab |
| switch keyboard language layout | Sup-Spc | Cmd-Spc |
| close window | Ctrl-w | Cmd-w |
| quit app | ??? | Cmd-q |
| copy/cut/paste | Ctrl-c/x/v | Cmd-c/x/v |
| new doc/win | Ctrl-n | Cmd-n |
| Prefs/Settings | ??? | Cmd-, |
| jump word | Ctrl-le/ri | Opt-le/ri |
| line start/end | ??? | Cmd-le/ri |
The lines with ??? are interesting. To quit an app on Linux, sometimes it's Ctrl-q, sometimes Alt-F4. App Preferences / Settings are all over the place. Libre Office uses Alt-F12. Evolution uses Shift-Ctrl-s. Other apps don't have a shortcut for settings at all. To jump to the beginning or end of a line you could use Home / End on single-line text fields, but I haven't found a way to do this in multi-line text editors.
So I have two questions:
How do these shortcuts conceptually work on Linux? Does every app implement them separately and things like copy/paste just happen to be implemented the same (Ctrl-c/v) in each app? The different keys for Preferences seem to say so. But Gnome does have a section for Keyboard Shortcuts in Settings. So is there also a system-level way to define shortcuts and kind of "force it onto" apps?
Is there a way to remap keys to create a uniform system-wide behavior like on the Mac and also match the Apple Cmd key locations?
It would have to involve mapping both the Super and the Ctrl keys to Alt as modifier for certain combinations, see table above, i.e. pressing the physical Alt key plus Tab would act like Super-Tab to cycle through apps and Alt key plus w would act like Ctrl-w to close a window.
Again, I'm using Gnome, which I've learned works with Wayland (not sure yet exactly what that is, but it makes several solutions not work). I've seen solutions like Input Remapper, but it allows only remapping one source and target key. I can switch Alt and Super or Alt and Ctrl but not combine the two. I've also read about xmodmap but it's one of those that apparently doesn't work with Wayland. Kinto looks promising but also doesn't work with Wayland. I've also seen xset and xev mentioned, but I'm not sure if they work in this case and how to use them.

