default cam + unsupported wayland
This commit is contained in:
parent
0d62ca92a8
commit
5b28d18c5a
8
scan.sh
8
scan.sh
@ -3,7 +3,13 @@
|
|||||||
# Debian: sudo apt-get install zbar-tools xdotool mpv
|
# Debian: sudo apt-get install zbar-tools xdotool mpv
|
||||||
# Arch: sudo pacman -S zbar xdotool mpv
|
# Arch: sudo pacman -S zbar xdotool mpv
|
||||||
|
|
||||||
zbarcam /dev/video0 | while read line; do
|
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
|
||||||
|
echo "Unsupported session type: $XDG_SESSION_TYPE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
zbarcam $1 | while read line; do
|
||||||
if [[ $line == *:* ]]; then
|
if [[ $line == *:* ]]; then
|
||||||
code="${line#*:}"
|
code="${line#*:}"
|
||||||
echo "$code"
|
echo "$code"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user