123456789101112131415161718192021222324252627282930313233 |
- #!/usr/bin/env bash
- MODE=WINDOW
- WINDOW=pick
- POP_WIN=true
- while getopts "m:w:x" OPT
- do
- case "${OPT}" in
- m)
- MODE="${OPTARG}"
- ;;
- w)
- WINDOW="${OPTARG}"
- ;;
- x)
- if [ "${POP_WIN}" == true ] ; then
- POP_WIN=false
- else
- POP_WIN=true
- fi
- esac
- done
- if [ "${MODE}" == "WINDOW" ] ; then
- tmu -e screenshare screenshare "x11vnc -id ${WINDOW} $X11VNCOPTS"
- else
- tmu -e screenshare screenshare "x11vnc $X11VNCOPTS"
- fi
- if [ "${POP_WIN}" == true ] ; then
- urxvto -e tmu -c screenshare
- fi
|