diff options
author | tv <tv@krebsco.de> | 2023-10-21 21:20:04 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-10-23 16:31:15 +0200 |
commit | 628e62684548e72ec72b1fec5c8981d25e63a22a (patch) | |
tree | 8805c31f4a435916a85a76912f048bc27fe58726 /pkgs/simple/fzmenu/bin/passmenu | |
parent | 5928a25ad10c0e463732ba4959e2e2b5a742166a (diff) |
fzmenu: xdotool -> xvkbd
xdotool breaks when changing keyboard layouts:
https://code.google.com/archive/p/semicomplete/issues/13
Diffstat (limited to 'pkgs/simple/fzmenu/bin/passmenu')
-rwxr-xr-x | pkgs/simple/fzmenu/bin/passmenu | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/simple/fzmenu/bin/passmenu b/pkgs/simple/fzmenu/bin/passmenu index 76153f5..a798925 100755 --- a/pkgs/simple/fzmenu/bin/passmenu +++ b/pkgs/simple/fzmenu/bin/passmenu @@ -35,9 +35,12 @@ case ${FZMENU_PHASE-0} in fi ;; 2) + # Specify a font, so xvkbd doesn't use the potentially missing + # lucidatypewriter, causing a warning to be printed to stderr. + font='-*-clean-*-*-*-*-*-*-*-*-*-*-iso10646-1' pass=$(pass show "$FZMENU_RESULT") printf %s "$pass" | - xdotool type -f - + xvkbd -xrm "xvkbd*Font: $font" -xsendevent -file - ;; *) echo "$0: error: bad phase: $FZMENU_PHASE" >&2 |