Last active
March 23, 2018 02:44
-
-
Save kevin-ashton/45181eaf1443626000460d9fe1cb59c7 to your computer and use it in GitHub Desktop.
Remapping key
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
# See https://www.linuxquestions.org/questions/linux-newbie-8/complicated-key-remap-multiple-keys-at-once-4175485671/ | |
# Also https://unix.stackexchange.com/questions/55076/what-is-the-mode-switch-modifier-for | |
# use `xev` to see what keys maps to (kind of verbose) | |
xset -r 133 | |
# Super_L mapped to switching mode | |
xmodmap -e "keycode 133 = Mode_switch" | |
xmodmap -e "keycode 30 = u U Page_Down Page_Down" | |
xmodmap -e "keycode 31 = i I Page_Up Page_Up" | |
xmodmap -e "keycode 43 = h H Left Left" | |
xmodmap -e "keycode 44 = j J Down Down" | |
xmodmap -e "keycode 45 = k K Up Up" | |
xmodmap -e "keycode 46 = l L Right Right" | |
xmodmap -e "keycode 57 = n N Home Home" | |
xmodmap -e "keycode 58 = m M End End" | |
# Trying to figure out how to get a normal Super_L (so I can get mint's cool divy like features) | |
xmodmap -e "keycode 133 = Super_L NoSymbol Super_L" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment