From 6b7e5d119fdee00e70f376ba3103c866c0b4480c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 21 Nov 2019 12:14:31 +0100 Subject: [PATCH] Add timeout for mapping control to escape After holding capslock for 500ms, it will not generate an escape press to avoid some unintentional presses of escape. --- .xinitrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.xinitrc b/.xinitrc index e52037e..e7056c9 100644 --- a/.xinitrc +++ b/.xinitrc @@ -49,7 +49,8 @@ setxkbmap -option grp:alt_shift_toggle # this only works when we already substitute a ctrl for caps with the lines above, # otherwise control itself will act as escape. # Needs xcape package installed. https://github.com/alols/xcape -type xcape >/dev/null 2>&1 && xcape -e 'Control_L=Escape' +# set a timeout of 500ms, if pressed longer it will ignore esc +type xcape >/dev/null 2>&1 && xcape -e 'Control_L=Escape' -t 500 # if unclutter exists start it type unclutter >/dev/null 2>&1 && unclutter &