Skip to content

Instantly share code, notes, and snippets.

@FilipDominec
Last active March 10, 2016 08:11
Show Gist options
  • Save FilipDominec/6c9b3af9f6b622d80846 to your computer and use it in GitHub Desktop.
Save FilipDominec/6c9b3af9f6b622d80846 to your computer and use it in GitHub Desktop.
When a digital camera is connected to your computer, it automatically downloads and displays the last shot.
#!/bin/bash
cd /home/SLIDESHOW
sleep 60
gphoto2 --capture-tethered --keep &
# geeqie -f latest/slideshow.jpg &
geeqie -f -s &
while true ; do cp `ls *JPG -1tr | tail -n 1` latest/slideshow.jpg ; sleep 2 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment