alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

Control to ESC not working with xkbmap #86

Closed QiangF closed 6 years ago

QiangF commented 7 years ago

After change capslock to control with

setxkbmap -layout "us(intl)" -option  -option ctrl:nocaps

or

setxkbmap -layout "us(intl)" -option  -option caps:ctrl_modifier

I tried xcape setting like this

xcape -e 'Control_R=Escape;Shift_L=Control_L|x;Shift_R=Control_L|c;Alt_L=Alt_L|x;Alt_R=Alt_L|c'&

xcape -e 'Control_L=Escape;Shift_L=Control_L|x;Shift_R=Control_L|c;Alt_L=Alt_L|x;Alt_R=Alt_L|c'&

Neither works.

john2x commented 6 years ago

This works on my setup:

 setxkbmap -option 'caps:ctrl_modifier'
 xcape -e 'Control_L=Escape;Control_R=Escape'