This commit is contained in:
Michael Chalupiak
2024-11-12 19:26:18 -05:00
parent 855ee6fe93
commit d0c2f9551f
4 changed files with 6 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ test -n "$alldrives"
# Feed all found drives to dmenu and get user choice.
chosen="$(echo "$alldrives" | dmenu -p "Mount which drive?" -i)"
#
# Function for prompting user for a mountpoint.
getmount(){
mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | dmenu -i -p "Mount this drive where?")"
@@ -110,6 +110,7 @@ case "$chosen" in
📱*)
notify-send "❗Note" "Remember to allow file access on your phone now."
echo "here"
getmount
number="${chosen%%:*}"
number="${chosen:1}" # This is a bashism.

1
config/.scripts/webcam Executable file
View File

@@ -0,0 +1 @@
mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)