Makes password manager change keyboard layout when inserting

Jonathan Hodgson 4 years ago
parent 62376524ee
commit 9f257bcea2
  1. 7
      bin/.bin/dmenu/password-manager

@ -10,7 +10,14 @@ function type_password(){
exit 1
fi
sleep 1
# xdotool doesn't appear to like it if I am uring colemak
# To get around that, switch back to normal
setxkbmap -layout gb
echo "$pw" | xdotool type --clearmodifiers --file -
# Then revert back to colemak
setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle
xset r rate 200 70
xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device
}
function copy_password(){
local password="$1"

Loading…
Cancel
Save