Last active
March 22, 2023 02:52
-
-
Save Nandhakumarpro/b2fe3ad0feed5d29351eea28eb733752 to your computer and use it in GitHub Desktop.
arrow keys remapping script || useful for developers
This file contains 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
xmodmap -e "keycode 66 = Mode_switch" | |
xmodmap -e "keycode 14 = 5 percent Up" # Caps_lock + 5 = ↑ | |
xmodmap -e "keycode 15 = 6 asciicircum Down" # Caps_Lock + 6 = ↓ | |
xmodmap -e "keycode 16 = 7 ampersand Left" # Caps_lock + 7 = ← | |
xmodmap -e "keycode 17 = 8 asterisk Right" # Caps_lock + 8 = → | |
############# you can use u, h, j, n keys for up, left, right, down by below code ############ | |
xmodmap -e "keycode 66 = Mode_switch" | |
xmodmap -e "keycode 30 = u U Up" | |
xmodmap -e "keycode 43 = h H Left" | |
xmodmap -e "keycode 44 = j J Right" | |
xmodmap -e "keycode 57 = n N Down" | |
############ g, k mapped to Home, End #################### | |
xmodmap -e "keycode 42 = g G Home" | |
xmodmap -e "keycode 45 = k K End" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment