camera-relay.sh
Files / xps-14-webcam / camera-relay.sh
Files in xps-14-webcam/
Directoryxps-14-webcam/
- 51-camera-relay.conf 463 bytes
- camera-relay.desktop 217 bytes
- camera-relay.service 869 bytes
- camera-relay.sh 661 bytes
- install.sh 2.4 KB
- LICENSE 1.0 KB
- ov08x40.yaml 628 bytes
- setup-root.sh 1.6 KB
From The webcam on a Dell XPS 14 (Panther Lake) under Kubuntu 26.04. MIT licence: LICENSE.
#!/usr/bin/env bash# Start/stop the built-in camera relay. Usage: camera-relay [toggle|start|stop|status]set -euo pipefailsvc=camera-relay.servicenotify() { command -v notify-send >/dev/null && notify-send -a "Camera relay" -i camera-web "$1" || true; echo "$1"; }case "${1:-toggle}" in start) systemctl --user start "$svc"; notify "🟢 Camera relay on" ;; stop) systemctl --user stop "$svc"; notify "🔴 Camera relay off" ;; status) systemctl --user status "$svc" --no-pager ;; toggle) if systemctl --user is-active -q "$svc"; then "$0" stop; else "$0" start; fi ;; *) echo "Usage: camera-relay [toggle|start|stop|status]"; exit 1 ;;esacText, photos and drawings: CC BY 4.0. Code: MIT. Share and adapt them, crediting HomeLab Series (blog.jacq.cc). Licence and terms of use ·Privacy policy (no cookies, no tracking)