Skip to content

Instantly share code, notes, and snippets.

@edwardrf
Last active March 31, 2021 05:53
Show Gist options
  • Save edwardrf/a7e8c170571730312d2e to your computer and use it in GitHub Desktop.
Save edwardrf/a7e8c170571730312d2e to your computer and use it in GitHub Desktop.
xmodmap config to map caps_lock to mode_switch and map mode_switch + ijkl to up left down right
#!/bin/bash
xmodmap -e "clear lock"
xmodmap -e "keysym Caps_Lock = Mode_switch Mode_switch"
xmodmap -e "keysym i = i I Up Up"
xmodmap -e "keysym k = k K Down Down"
xmodmap -e "keysym j = j J Left Left"
xmodmap -e "keysym l = l L Right Right"
xmodmap -e "keysym u = u U Home Home"
xmodmap -e "keysym o = o O End End"
xmodmap -e "keysym u = y Y Prior Prior"
xmodmap -e "keysym o = h H Next Next"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment