summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/fzmenu/bin
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/simple/fzmenu/bin')
-rwxr-xr-xpkgs/simple/fzmenu/bin/otpmenu5
-rwxr-xr-xpkgs/simple/fzmenu/bin/passmenu5
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/simple/fzmenu/bin/otpmenu b/pkgs/simple/fzmenu/bin/otpmenu
index 273a408..714ab7c 100755
--- a/pkgs/simple/fzmenu/bin/otpmenu
+++ b/pkgs/simple/fzmenu/bin/otpmenu
@@ -34,9 +34,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 otp code "$FZMENU_RESULT/otp")
printf %s "$pass" |
- xdotool type -f -
+ xvkbd -xrm "xvkbd*Font: $font" -xsendevent -file -
;;
*)
echo "$0: error: bad phase: $FZMENU_PHASE" >&2
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