Using space as extra modifier, e.g. Ctrl to emit Ctrl+A, does not work.
Tested with Wine's notepad.exe.
Using:
xcape 1.1.r13.g7fca364-1
wine 1.9.15
spare_modifier="Hyper_R"
xmodmap -e "keycode 65 = $spare_modifier"
xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
xmodmap -e "add Control = $spare_modifier"
# 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 -e "$spare_modifier=space"
Note: Space is sent correctly after pressing and releasing and timeout works too.
Using space as extra modifier, e.g. Ctrl to emit Ctrl+A, does not work. Tested with Wine's notepad.exe.
Using: xcape 1.1.r13.g7fca364-1 wine 1.9.15
Note: Space is sent correctly after pressing and releasing and timeout works too.