This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WLPDIR="$HOME/images/wallpapers/" | |
files=($WLPDIR*) | |
wlpfile=${files[RANDOM % ${#files[@]}]} | |
printf "Setting wallpaper to %s\n" "$wlpfile" | |
feh --bg-fill "$wlpfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VOPATH=/media/data/motion # video output directory | |
MPATH=/home/pi/motion # motion log directory | |
FFMPEG=/usr/local/bin/ffmpeg # path to ffmpeg | |
CAM=1 | |
pidfile=$MPATH/cam$CAM.pid | |
if [ ! -f $pidfile ]; then | |
echo "PID file not found." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VOPATH=/media/data/motion # video output directory | |
MPATH=/home/pi/motion # motion log directory | |
CAM=1 | |
pidfile=$MPATH/cam$CAM.pid | |
if [ ! -f $pidfile ]; then | |
echo "PID file not found. Nothing to do." | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SERVICE='motion' | |
RUN_COMMAND='nice -n 10 /usr/local/bin/motion &' | |
LOGFILE=/home/pi/motion/motion.log | |
VOPATH=/media/data/motion # video output directory | |
LIMIT=90 # maximum disk usage | |
if [ ! $(pidof $SERVICE) ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fhvffg |