Last active
March 15, 2023 09:50
-
-
Save delabassee/a6b1e55a6fd7217eb6e46b1f9c482fc1 to your computer and use it in GitHub Desktop.
Dual VLC instances on dual displays (full screen) - Raspberry Pi 4
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
// 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 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The assumption is that each screen is 1080p, i.e. 1920px wide