add command-line options
This commit is contained in:
parent
2cc3f88274
commit
1f63880a8e
20
reStream.sh
20
reStream.sh
@ -3,10 +3,23 @@
|
|||||||
# these are probably the only two parameters you need to change
|
# these are probably the only two parameters you need to change
|
||||||
ssh_host="root@10.11.99.1" # location of the remarkable
|
ssh_host="root@10.11.99.1" # location of the remarkable
|
||||||
landscape=true # default vertical
|
landscape=true # default vertical
|
||||||
if [ "$1" = "-p" ] # call with -p if you want vertical
|
|
||||||
then
|
# Loop through arguments and process them
|
||||||
|
for arg in "$@"
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
-p|--portrait)
|
||||||
landscape=false
|
landscape=false
|
||||||
fi
|
shift
|
||||||
|
;;
|
||||||
|
-h|--host)
|
||||||
|
ssh_host="$2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
# technical parameters
|
# technical parameters
|
||||||
width=1408
|
width=1408
|
||||||
@ -74,4 +87,3 @@ ssh "$ssh_host" "$read_loop" \
|
|||||||
-video_size "$width,$height" \
|
-video_size "$width,$height" \
|
||||||
$landscape_param \
|
$landscape_param \
|
||||||
-i -
|
-i -
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user