diff --git a/scan.sh b/scan.sh index 67af995..ca4767d 100755 --- a/scan.sh +++ b/scan.sh @@ -9,7 +9,7 @@ zbarcam --nodisplay $1 | while read line; do if [[ $line == *:* ]]; then code="${line#*:}" echo "$code" - xdotool type --delay 0 "$code" & mpv --quiet --no-video beep.mp3 >> /dev/null - xdotool key Return + wtype "$code" & xdotool type --delay 0 "$code" & mpv --quiet --no-video beep.mp3 >> /dev/null + wtype $'\n' & xdotool key Return fi done