splitbrain / clipscreen

Mirror a portion of your screen to a virtual monitor for easier screen sharing.
https://www.splitbrain.org/blog/2024-10/11-introducing_clipscreen
187 stars 6 forks source link
screensharing virtual-monitor x11 xorg xrandr

clipscreen

clipscreen is a simple application that creates a virtual monitor that mirrors a portion of your screen. A green rectangle highlights the specified area.

Why's this useful? You can use any screen sharing tool (Google Meet, Microsoft Teams, Jitsi Meet, etc.) to share the virtual monitor instead of your entire screen. No need to share individual windows and having to switch between them, just move any window you want to share into the green border.

Compile

Ensure you have the following installed on your system:

Then simply run the following command to compile the application:

make

Note: The application has only been tested on Linux and xorg. I doubt it will work on any other system.

Usage

Run the compiled executable with the following command:

./clipscreen <width> <height> <x> <y>

For example:

./clipscreen 800 600 100 100

This command will create an 800x600 overlay window starting at position (100, 100) on your screen.

Termination

To terminate the application, press Ctrl+C in the terminal where the application is running.

License

Copyright 2024 Andreas Gohr andi@splitbrain.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.