Skip to content

Instantly share code, notes, and snippets.

@delabassee
Last active March 15, 2023 09:50
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 delabassee/a6b1e55a6fd7217eb6e46b1f9c482fc1 to your computer and use it in GitHub Desktop.
Save delabassee/a6b1e55a6fd7217eb6e46b1f9c482fc1 to your computer and use it in GitHub Desktop.
Dual VLC instances on dual displays (full screen) - Raspberry Pi 4
// launch 2 VLC instances
SECOND=false;
wmctrl -l | grep -i vlc | cut -c 1-12 | while read win_id ; do
if [ "$SECOND" = false ]; then
echo "1st screen : $win_id"
SECOND=true
wmctrl -i -r "$win_id" -e0,2000,24,1000,550
wmctrl -i -r "$win_id" -b toggle,fullscreen
else
echo "2nd screen : $win_id"
wmctrl -i -r "$win_id" -e0,10,24,1000,550
wmctrl -i -r "$win_id" -b toggle,fullscreen
fi
done
@delabassee
Copy link
Author

delabassee commented Mar 11, 2023

The assumption is that each screen is 1080p, i.e. 1920px wide

@delabassee
Copy link
Author

delabassee commented Mar 12, 2023

https://wiki.archlinux.org/title/multihead

Find WebCam lsusb
VLC USB Webcam cvlc v4l2:///dev/video0 --fullscreen

xdotool search --onlyvisible --name cvlc windowmove 0 1000
xrandr --listactivemonitors

Turn Pi into a kiosk playing looping videos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment