| selector | definition |
|---|---|
| DELAY | how long to wait before first shot |
| LONG | how long to shutter is open for |
| INTVL | how long to wait between shots |
| N | number of shots to take |
Press light + SET
(essential are in bold)
Pick an area with as little light pollution as possible, including light you can see over the horizon from neighboring civilization.
| #!/bin/bash | |
| case "$1" in | |
| "on") | |
| xset -dpms | |
| xset s noblank | |
| xset s off | |
| ;; | |
| "off") |
| #!/bin/bash | |
| comicdir=$1 | |
| if [ -d "$comicdir" ] | |
| then | |
| outname=$(echo $comicdir | sed -e 's/\///') | |
| outname=$(echo $outname | sed -e 's/\ /_/g') |
| #!/bin/sh | |
| FORMAT=$(echo -e "\033[1;33m%w%f\033[0m written at $(date +'%r')") | |
| clear | |
| while true | |
| do | |
| clear\ | |
| && echo "[Running \"$@\" on files changes in $(pwd) at $(date +'%r')]"\ | |
| && echo ""\ | |
| && echo "$@" > /home/andrew/bin/data/lastroc.sh\ | |
| && bash /home/andrew/bin/data/lastroc.sh 0>/dev/null \ |
| #!/bin/bash | |
| #one hour (in seconds) | |
| wait=$((60 * 60)) | |
| while true | |
| do | |
| dns=$(dig andykais.com +nostats +nocomments +nocmd) | |
| if [[ $dns == *"github"* ]] | |
| then |
| #!/bin/bash | |
| xrandr -q | grep 'connected' | awk '{print $1}' | while read line | |
| do | |
| if [ "$line" != "LVDS1" ] | |
| then | |
| xrandr --output $line --left-of LVDS1 --auto | |
| fi | |
| #!/bin/bash | |
| #wait (in seconds) for background to change | |
| wait=$((60 * 60)) | |
| #in the future, could load files from a general bin/config file | |
| #sed -c -i "s/\($TARGET_KEY *= *\).*/\1$REPLACEMENT_VALUE/" $CONFIG_FILE | |
| dir="$(cat /home/andrew/bin/data/slideshow_all.txt)" | |
| #finds the image files in $dir, optionally can add --max-depth 1 to keep from searching subdirs | |
| files=$(find "$dir" -regex ".*\.\(jpg\|gif\|png\|jpeg\)" | sort -n) |
| syntax enable | |
| set background=dark | |
| colorscheme solarized | |
| if $COLORTERM == 'gnome-terminal' | |
| set t_Co=256 | |
| endif |