Skip to content

Instantly share code, notes, and snippets.

@tomdaley92
Last active September 5, 2021 01:59
Show Gist options
  • Save tomdaley92/7a97231fd70ef89eedd0879296b82a3d to your computer and use it in GitHub Desktop.
Save tomdaley92/7a97231fd70ef89eedd0879296b82a3d to your computer and use it in GitHub Desktop.
Debian Caps-lock Re-purposing
hyper-caps() {
xmodmap ~/.Xmodmap -verbose
}
normal-caps() {
setxkbmap -layout us
}
keycode 66 = Mode_switch
keysym j = j J Left
keysym l = l L Right
keysym i = i I Up
keysym k = k K Down
keysym u = u U Home
keysym o = o O End
@tomdaley92
Copy link
Author

For now, I'm not even bothering with any automation and just ended up creating some quick and dirty convenience functions in my ~/.bashrc

hyper-caps() {
    xmodmap ~/.Xmodmap -verbose
}

normal-caps() {
    setxkbmap -layout us
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment