summaryrefslogtreecommitdiff
path: root/.config/nushell/phone.nu
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2026-04-03 22:46:48 +0200
committerWriterV2 <primary-v2@protonmail.com>2026-04-03 22:46:48 +0200
commita1ec4771740d321df4480e8a7224fa10b59f0569 (patch)
tree5e97e8ced79b4fea057fab6e76f80849c053e401 /.config/nushell/phone.nu
Update repo with git init directly in home dir
Diffstat (limited to '.config/nushell/phone.nu')
-rw-r--r--.config/nushell/phone.nu6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nushell/phone.nu b/.config/nushell/phone.nu
new file mode 100644
index 0000000..ef62a80
--- /dev/null
+++ b/.config/nushell/phone.nu
@@ -0,0 +1,6 @@
+export def camera-as-webcam [
+ direction: string # 'front' or 'back'
+] {
+ scrcpy --v4l2-sink=/dev/video0 -m1024 --video-source=camera --no-audio --camera-facing ($direction)
+}
+