Makes password manager change keyboard layout when inserting
This commit is contained in:
parent
cecdd951dd
commit
3f265a3c25
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue