faster input
This commit is contained in:
parent
5b28d18c5a
commit
f5f9d96019
3
scan.sh
3
scan.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user