

- #Remap keyboard keys linux how to#
- #Remap keyboard keys linux install#
- #Remap keyboard keys linux mac#
# If you want a systemd service and bash script to help toggle between Remapping keys is a useful method to customize your keyboard.
#Remap keyboard keys linux how to#
Setxkbmap -option setxkbmap -option altwin:swap_alt_win This article provides an easy step-by-step guide on how to remap your keyboard keys in Windows.
#Remap keyboard keys linux mac#
# Windows and Mac keyboards - Terminal Apps (Physical Alt is Super, Physical Super is Alt, Physical Ctrl is Ctrl) Setxkbmap -option setxkbmap -option altwin:ctrl_alt_win # Windows and Mac keyboards - GUI (Physical Alt is Ctrl, Physical Super is Alt, Physical Ctrl is Super) # Temporary & instant apple keyboard keyswapĮcho '1' | sudo tee -a /sys/module/hid_apple/parameters/swap_opt_cmd Gist content # permanent apple keyboard keyswapĮcho "options hid_apple swap_opt_cmd=1" | sudo tee -a /etc/modprobe.d/hid_nf The Gist also does not include custom xkb keymap files that setup macOS style cursors/word-wise manipulations that use Cmd and the arrow keys. As far as I am concerned it is the fastest and most native solution to this problem that you are going to find.Īlso Xmodmap is defunct, it will not work going forward with a Gist as well, if you just want to see what is at the heart of it all, it will not alternate your keymap when needed though. The Kinto installer simply uses python to do the initial install, after that it's just a systemd service, bash, xprop, setxkbmap and xkbcomp. It's a project I recently created, after a few years of tackling this problem a few different ways and I just now feel like it's solid enough to share. Is it possible to make such configuration system-wide on Linux (Debian)?įinally, I have managed to achieve my goal with following configuration: !file ~/.XmodmapĪlso, here is similar question with quite helpful and simple guides.

In this case ctrl could be used as Super modifier, while menu could be kept untouched. xmodmap -e 'keycode 107 mod1 F9 SysReq' should swap F9 to where PrtSc was keeping the modified SysReq ( Alt + PrtSc) again we can use xev to help verify this. So, to correspond to my laptop keys, I want win keys to be mapped to Alt modifier, and alt keys to be mapped to Control modifier.

I want to configure my keys on Linux same way, here is what I have on my PC's keyboard: These configuration eases for me Emacs experience (big thumb hits Control cmd key) and I got used to this kind of key bindings.īy default alt is used as Meta, while ctrl is used as Control, the keys are swapped and big thumb lays on Meta Here is how keys are arranged on laptop:įn is unused in my Emacs workflow, other keys configured as listed below: I have a MacBook with Emacs and use it primarily.
#Remap keyboard keys linux install#
I want to install Debian Jessie on my PC to use it with Emacs. How can I remap (swap) modifier keys system-wide on Linux? Explanation:
