Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.86 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.86 KB

TouchCursor for Linux / X11

"There's no place like Home Row..."

I've copied these configs out from my private WIP dotfiles, to provide an example of how to get TouchCursor bindings under Linux / X11.

Use xcape to:

  • Set the CapsLock to emit an esc on tap, and act as a control key modifier when held
  • Set the Space key to emit a space on tap, and act as the hyper key modifier when held

Use autokey to map all the Hyper_L combos

You'll need some sort of init script, like this:

  killall xcape

  # Clear changes
  setxkbmap

  # TouchCursor-ish
  #   Based on the example from: https://github.com/alols/xcape

  # Map an unused modifier's keysym to the spacebar's keycode and make it a
  # control modifier. It needs to be an existing key so that emacs won't
  # spazz out when you press it. Hyper_L is a good candidate.
  spare_modifier="Hyper_L"
  xmodmap -e "keycode 65 = $spare_modifier"
# xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
  # This is in example, but breaks things here :/

  # Map space to an unused keycode (to keep it around for xcape to use).
  xmodmap -e "keycode any = space"

  # Finally use xcape to cause the space bar to generate a space when tapped.
  xcape -t 500 -e "Control_L=Escape;$spare_modifier=space"
  # Play around w/ the -t value, to your liking