Last active
August 29, 2015 14:25
-
-
Save thedod/1db84b9ceae2064b6acb to your computer and use it in GitHub Desktop.
Launch GMotionLive as a sticky, always-on-top window (requires wmctrl)
This file contains hidden or 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/sh | |
# Launch http://www.lavrsen.dk/foswiki/bin/view/Motion/GMotionLive as sticky,always-on-top | |
# Usage: panoptchik.sh [N] | |
# N is webcam index (default is 1) | |
### Config me! | |
export WEBCAM_PREFIX=http://192.168.1.41:808 # port's last digit is [1 based] cam index | |
if [ "$1" == "" ] ; then | |
export CAM=1 # Cam 1, I presume | |
else | |
export CAM=$1 | |
fi | |
gmotionlive $URL_PREFIX$CAM "Panoptchik $CAM" & | |
sleep 1 | |
wmctrl -r "Panoptchik $CAM" -b add,above,sticky |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment