Mac-like copy/paste on Fedora
2018 is the year of Linux on the desktop—but only for me and only since I started working at a new company where I use Fedora for ~ eight hours daily. Coming from 10+ years of using Macs at work, the biggest change is using
Ctrl + C/V for copy/paste and not
Cmd + C/V. A couple of weeks in and my hand began to get a slight cramp from using my pinky and index fingers rather than my thumb and index fingers for the operation.
After reading how to remap keys with xmodmap, the configuration below is what I came up with.
Once parsed by Xorg, this lines in this file will remap
right alt to
left alt to
right control and
left super to
$ vi ~/.Xmodmap
clear control clear mod1 clear mod4 keycode 133 = Alt_L Meta_L keycode 37 = Control_L keycode 64 = Control_R keycode 108 = Super_R add control = Control_L Control_R add mod1 = Alt_L Meta_L add mod4 = Super_R
Confirm that this file is in your home directory, logout, log back in, and test. This may break existing shortcuts, so be sure to remap as neccessary under Settings > Keyboard > Application Shortcuts.