added wayland support
This commit is contained in:
parent
2ccd54fe11
commit
b3a36a9f3c
4
scan.sh
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user