Adds a new --monitor mode that detects the display the cursor is positioned within before capturing only that display.
Since upstream tools don't really support active monitor detection, we get the cursor position using xdotool then loop through the outputs until the cursor position is within the output coordinates. That's then formed into a geometry string which can be passed to import for cropping from the root window.
Adds a new
--monitor
mode that detects the display the cursor is positioned within before capturing only that display.Since upstream tools don't really support active monitor detection, we get the cursor position using
xdotool
then loop through the outputs until the cursor position is within the output coordinates. That's then formed into a geometry string which can be passed toimport
for cropping from the root window.Fixes #13