From 22dd3a62ffb7e6b93ea713f085c96597f60185e8 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Sat, 17 Dec 2022 21:28:48 +0000 Subject: [PATCH] stop x:backspace simulating shift --- keys.go | 1 - xkeys.bash | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/keys.go b/keys.go index ddb81fa..b8a677a 100644 --- a/keys.go +++ b/keys.go @@ -528,7 +528,6 @@ var xKeysShifted = map[string]int{ "parenright": uinput.Key0, "underscore": uinput.KeyMinus, "plus": uinput.KeyEqual, - "backspace": uinput.KeyBackspace, "iso_left_tab": uinput.KeyTab, "q": uinput.KeyQ, "w": uinput.KeyW, diff --git a/xkeys.bash b/xkeys.bash index eb8766e..033eef4 100755 --- a/xkeys.bash +++ b/xkeys.bash @@ -36,7 +36,7 @@ echo 'var xKeysShifted = map[string]int{' { paste -d ' ' <(xmodmap -pke | sed '1 d; s/.*= /"/; /.*=/ d; s/\S* /"/; s/ .*/":/' | sed '/^"XF86Eject"/ { N; s/.*\n// }') \ <(go doc uinput.keyesc | sed '/Key/ !d; s/^\s*/uinput./; s/ .*/,/' | align) | sed '/^"NoSymbol"/ d; /^\S*_[LR]"/ d' | - # Remove duplicate keys - sed '/^"KP_Decimal":.*Kpcomma/ d; /\/ d' + # Remove backspace and duplicate keys + sed '/^"BackSpace"/ d; /^"KP_Decimal":.*Kpcomma/ d; /\/ d' } | sed 's/^".*"/\L&/; s/^/\t/' echo '}'