faster input

This commit is contained in:
Shihaam Abdul Rahman 2024-01-07 01:42:33 +05:00
parent 5b28d18c5a
commit f5f9d96019
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -13,8 +13,7 @@ zbarcam $1 | while read line; do
if [[ $line == *:* ]]; then
code="${line#*:}"
echo "$code"
mpv --quiet --no-video beep-01a.mp3 >> /dev/null
xdotool type --delay 0 "$code"
xdotool type --delay 0 "$code" & mpv --quiet --no-video beep-01a.mp3 >> /dev/null
xdotool key Return
fi
done