added wayland support

This commit is contained in:
Shihaam Abdul Rahman 2024-01-07 02:19:56 +05:00
parent 2ccd54fe11
commit b3a36a9f3c
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -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