←back to thread

345 points splitbrain | 2 comments | | HN request time: 0.001s | source
Show context
IceDane ◴[] No.41839538[source]
You can literally do this with just xrandr.

xrandr --setmonitor screenshare 2560/1x1440/1+0+0 none

replies(3): >>41839839 #>>41840482 #>>41854641 #
1. Liskni_si ◴[] No.41854641[source]
To make the selection interactive, the command becomes:

geo=$(slop -f '%w/1x%h/1+%x+%y') && xrandr --setmonitor screenshare "$geo" none

replies(1): >>41854695 #
2. Liskni_si ◴[] No.41854695[source]
Also looks like one can just do

xrandr --delmonitor screenshare

before this to seamlessly update the shared region — Chrome will immediately pick up the change and continue sharing the updated virtual monitor.