faster beep
This commit is contained in:
BIN
beep-01a.mp3
BIN
beep-01a.mp3
Binary file not shown.
2
scan.sh
2
scan.sh
@@ -13,7 +13,7 @@ zbarcam $1 | while read line; do
|
|||||||
if [[ $line == *:* ]]; then
|
if [[ $line == *:* ]]; then
|
||||||
code="${line#*:}"
|
code="${line#*:}"
|
||||||
echo "$code"
|
echo "$code"
|
||||||
xdotool type --delay 0 "$code" & mpv --quiet --no-video beep-01a.mp3 >> /dev/null
|
xdotool type --delay 0 "$code" & mpv --quiet --no-video beep.mp3 >> /dev/null
|
||||||
xdotool key Return
|
xdotool key Return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user