santiagofdezg / linux-extend-screen

Turn your Android tablet into a second monitor on Linux (extend screen)
MIT License
307 stars 25 forks source link

Use `--clip xinerama` instead of manually calculating clip offsets #3

Open creshal opened 3 years ago

creshal commented 3 years ago
Use '-clip xinerama0' to clip to the first xinerama
sub-screen (if xinerama is active).  xinerama1 for the
2nd sub-screen, etc.  This way you don't need to figure
out the WxH+X+Y of the desired xinerama sub-screen.
screens are sorted in increasing distance from the
(0,0) origin (I.e. not the Xserver's order).

Ought to be xinerama1 for the common use case of no other screen being connected (and easily adjusted for other setups), which makes the whole script a lot more more robust.