add output option to script

This commit is contained in:
lucy 2026-08-25 15:58:20 +02:00
commit e9cd01e68f

View file

@ -23,5 +23,7 @@ case "${1:-fullscreen}" in
if [ -z "$g" ]; then kill "$wp" 2>/dev/null; rm -f "$p"; exit 1; fi
grim -g "$g" - | wl-copy
kill "$wp" 2>/dev/null; rm -f "$p" ;;
output)
grim -o "$(mmsg get cursorpos | jq -r .monitor)" - | wl-copy;;
*) grim - | wl-copy;;
esac