default cam + unsupported wayland

This commit is contained in:
Shihaam Abdul Rahman 2024-01-07 01:35:34 +05:00
parent 0d62ca92a8
commit 5b28d18c5a
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

View File

@ -3,7 +3,13 @@
# Debian: sudo apt-get install zbar-tools 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
code="${line#*:}"
echo "$code"