Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On linux, can I get keys to behave differently if tapped?

So I just read a wonderful article about tricking out the modern keyboard:

http://stevelosh.com/blog/2012/10/a-modern-space-cadet/

On of the most interesting suggestions for me is this vision of a duality for the control key:

  1. When pressed in conjunction with another key, the control key acts as it normally does.
  2. When briefly tapped, the control key sends escape.

This would be a big deal for me, because it would save me a significant amount of movement as I use vim.

Is there any way I can implement this behavior in linux?

like image 925
alexgolec Avatar asked Oct 21 '22 04:10

alexgolec


1 Answers

https://github.com/alols/xcape Xcape seems to be exactly what you're after.

like image 147
mike3996 Avatar answered Nov 03 '22 00:11

mike3996