Makes password manager change keyboard layout when inserting

master
Jonathan Hodgson 4 years ago
parent cecdd951dd
commit 3f265a3c25
  1. 7
      bin/.bin/dmenu/password-manager

@ -10,7 +10,14 @@ function type_password(){
exit 1 exit 1
fi fi
sleep 1 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 - 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(){ function copy_password(){
local password="$1" local password="$1"

Loading…
Cancel
Save