Skip to content

Instantly share code, notes, and snippets.

@thedod
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedod/1db84b9ceae2064b6acb to your computer and use it in GitHub Desktop.
Save thedod/1db84b9ceae2064b6acb to your computer and use it in GitHub Desktop.
Launch GMotionLive as a sticky, always-on-top window (requires wmctrl)
#!/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