Last active
August 29, 2015 14:27
-
-
Save fgui/1161984d00a398011ce7 to your computer and use it in GitHub Desktop.
space as ctrl with at home modifier ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gitlab.com/at-home-modifier/at-home-modifier-evdev | |
Map space (65:37) and capslock (66:37) to control for combination with other keys. | |
Depending on the keyboard sometimes space works as a control if typing space and key at same time. | |
It almost never happens to me with a mechanical keyboard or the old thinkpad keyboard. | |
## for ubuntu | |
sudo add-apt-repository ppa:yurivkhan/ahm | |
sudo apt-get update | |
sudo apt-get upgrade | |
create file /usr/share/X11/xorg.conf.d/10-keyboard.conf with the following content: | |
## 10-keyboard.conf | |
Section "InputClass" | |
Identifier "my keyboard" | |
Driver "evdev" | |
Option "XKBOptions" "terminate:ctrl_alt_bksp" # and so on | |
# If you save this file under xorg.conf.d/ : | |
Option "AutoServerLayout" "on" | |
MatchIsKeyboard "on" | |
# If you have multiple keyboards, you want something like one of them: | |
# MatchProduct "AT Translated Set 2 keyboard" | |
# MatchUSBID "0566:3029" | |
# Name is found in Xorg log, following the message "Adding input device" | |
# or by | |
# $ cat /proc/bus/input/devices | |
### at-home-modifier options begin here. | |
# The basic option. | |
Option "TransMod" "65:37 102:241 66:37" # Defines key/modifier pairs. | |
## Fine tuning options. Explained in a later section. | |
# For the first time, omit them. | |
# Option "AhmTimeout" "400" # In millisecond. | |
# Option "AhmDelay" "65 102" # Delayed keys. Seperate by spaces. | |
# Option "AhmFreezeTT" "true" | |
# Option "AhmResetTime" "10" # In sec. | |
# Option "AhmPaddingInterval" "10" # In millisecond. | |
EndSection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment