1

I'm using Ubuntu 16.04.

I've tried xmodmap, xbindkeys + xdotool with no luck.

Here's an example solution that I've tried with xmodmap.

xmodmap -e "keycode 65 control = space Shift_L"
  • Another option might be at home modifier or xcape, which can make keys dual-functional. When you press space normally, it sends a space. When you hold it and press another key, it sends a shift. – Sparhawk May 23 '17 at 5:02
  • I've tried xcape translating space to shift, it doesn't work well. – Russ Kiselev May 23 '17 at 5:04
  • This is illegal xmodmap syntax, and xmodmap doesn't support what you want. Read up on xkb, make your own custom keyboard layout with a "compatibility map" (misleading name) that does what you want. – dirkt May 23 '17 at 5:15
  • I know that this answer is old; however, it does show the syntax above. – Russ Kiselev May 23 '17 at 5:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.