Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save klo2k/c9971e2f6ca1fa215f64b20ff8755d11 to your computer and use it in GitHub Desktop.
Save klo2k/c9971e2f6ca1fa215f64b20ff8755d11 to your computer and use it in GitHub Desktop.
Create virtual monitor - Screencast share portion of screen via Teams / Google Meet etc...

Create virtual monitor - Screencast share portion of screen via Teams / Google Meet etc...

  1. Create virtual monitor to share, say top-right quarter of my 4k screen

    xrandr --setmonitor CAST-1 1920/1x1080/1+1920+0 none
    
    i.e.
    -----------------------------------------
    |    4k monitor     |   Virtual screen   |
    |                   |     (to share)     |
    |                   |                    |
    |                   ----------------------
    |                                        |
    |                                        |
    |                                        |
    ------------------------------------------
    
  2. Open Teams / Google Meet etc... share the new virtual screen

  3. Clean-up

    xrandr --delmonitor CAST-1
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment