Compare commits
2 Commits
d33a375a44
...
1851aeae89
Author | SHA1 | Date | |
---|---|---|---|
1851aeae89 | |||
cb430b869a |
@ -16,7 +16,7 @@ RestartSec=3
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
" > HOME/.config/systemd/user/webcam-barcode.service
|
" > $HOME/.config/systemd/user/webcam-barcode.service
|
||||||
|
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable --now webcam-barcode.service
|
systemctl --user enable --now webcam-barcode.service
|
||||||
|
2
scan.sh
2
scan.sh
@ -3,6 +3,8 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
|
||||||
|
|
||||||
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
|
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
|
||||||
echo "Unsupported session type: $XDG_SESSION_TYPE"
|
echo "Unsupported session type: $XDG_SESSION_TYPE"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user