Skip to content

Instantly share code, notes, and snippets.

@AaronJackson
Created May 29, 2015 20:39
Show Gist options
  • Save AaronJackson/cc18bd0084a5a7a31658 to your computer and use it in GitHub Desktop.
Save AaronJackson/cc18bd0084a5a7a31658 to your computer and use it in GitHub Desktop.
Tile four VLC windows. Used to view RTSP security cameras
xset dpms 0 0 0
xset -dpms
xset s noblank
xset s noexpose
killall -9 vlc
export WINOPTS="--disable-screensaver --width=960 --height=540 --no-embedded-video"
vlc --video-title TopLeft \
$WINOPTS\
rtsp://admin:password@192.168.10.233 &
vlc --video-title TopRight \
$WINOPTS \
rtsp://admin:password@192.168.10.234 &
vlc --video-title BottomLeft \
$WINOPTS \
rtsp://admin:password@192.168.10.235 &
vlc --video-title BottomRight \
$WINOPTS \
rtsp://admin:password@192.168.10.232 &
sleep 2
wmctrl -r TopLeft -e 5,0,0,960,540
wmctrl -r TopRight -e 5,960,0,960,540
wmctrl -r BottomLeft -e 5,0,540,960,540
wmctrl -r BottomRight -e 5,960,540,960,540
wmctrl -a TopLeft # hide bottom window title bars
wmctrl -a TopRight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment