 Fix parameter order for xdotool

* Change parameter's order for xdotool
* Fix order parameters

Thanks to @arkadiusz-wieczorek for spotting and fixing the bug.
Fixes #3
This commit is contained in:
Arkadiusz Wieczorek 2022-01-07 12:10:39 +01:00 committed by GitHub
parent 8a31a36280
commit 3c2a8b9894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
bemoji
View file

@ -156,7 +156,7 @@ _typer() {
elif [ -n "$WAYLAND_DISPLAY" ] && command -v wtype >/dev/null 2>&1; then elif [ -n "$WAYLAND_DISPLAY" ] && command -v wtype >/dev/null 2>&1; then
wtype -s 30 "$totype" wtype -s 30 "$totype"
elif [ -n "$DISPLAY" ] && command -v xdotool >/dev/null 2>&1; then elif [ -n "$DISPLAY" ] && command -v xdotool >/dev/null 2>&1; then
xdotool type "$totype" --delay 30 xdotool type --delay 30 "$totype"
else else
printf "No suitable typing tool found." printf "No suitable typing tool found."
exit 1 exit 1