Compare commits

...

2 Commits

Author SHA1 Message Date
1851aeae89
installeler with +x 2024-01-07 01:59:57 +05:00
cb430b869a
scan from any dir 2024-01-07 01:59:42 +05:00
2 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ RestartSec=3
[Install]
WantedBy=default.target
" > HOME/.config/systemd/user/webcam-barcode.service
" > $HOME/.config/systemd/user/webcam-barcode.service
systemctl --user daemon-reload
systemctl --user enable --now webcam-barcode.service

View File

@ -3,6 +3,8 @@
# Debian: sudo apt-get install zbar-tools xdotool mpv
# Arch: sudo pacman -S zbar xdotool mpv
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
echo "Unsupported session type: $XDG_SESSION_TYPE"
exit 1