TouchCursor for Linux / X11
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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

  # TouchCursor-ish
  #   Based on the example from:

  # 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.
  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