add output option to script
This commit is contained in:
parent
bd93f5aef5
commit
e9cd01e68f
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue