4 ms·
You can literally do this with just xrandr. xrandr --setmonitor screenshare 2560/1x1440/1+0+0 none
by IceDane 2y ago
You can literally do this with just xrandr.
xrandr --setmonitor screenshare 2560/1x1440/1+0+0 none
- deleted 2y ago[deleted]
- attah_ 2y agoIn fairness; that and the overlay is what is happening, just from C++. Props for nice oneliner none the less. :)
- Liskni_si 2y agoTo make the selection interactive, the command becomes: geo=$(slop -f '%w/1x%h/1+%x+%y') && xrandr --setmonitor screenshare "$geo" none
- Liskni_si 2y agoAlso 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.