1
0
Fork 0

Add 'remoteapp'

This commit is contained in:
Torma Kristóf 2020-02-23 11:40:21 +01:00
parent b4f1f50b65
commit 84a8f4fbe5
1 changed files with 47 additions and 0 deletions

47
remoteapp Normal file
View File

@ -0,0 +1,47 @@
#!/usr/bin/env bash
REMOTEAPP="remoteapp.sch.bme.hu"
ADD_ARG="-grab-keyboard +toggle-fullscreen /d:SCH "
RDP="$HOME/bin/rdp.sh /v:$REMOTEAPP $ADD_ARG"
OPT_ARG=""
for((i=2;i<$#;i=i+1)); do
OPT_ARG="$OPT_ARG \"$$i\""
done
if [ "$#" -lt 1 ];then
echo "$0 app [xfreerdp arguments]"
exit
fi
RDP="$RDP $OPT_ARG"
case "$1" in
"word")
$RDP /shell:'||winword'
;;
"vsphere")
$RDP /shell:'||vpxclient'
;;
"matlab" | "mathlab")
$RDP /shell:'||matlab'
;;
"powerpoint" | "ppt")
$RDP /shell:'||powerpnt'
;;
"visio")
$RDP /shell:'||visio'
;;
"Photoshop" | "ps" | "photoshop")
$RDP /shell:'||Photoshop'
;;
"adobe" | "acrobat" | "acrobatreader" | "adobereader" | "pdf")
$RDP /shell:'||AcroRd32'
;;
"pt" | "packet tracer" | "packettracer")
$RDP /shell:'||PacketTracer6'
;;
*)
$RDP /shell:'||'${1##'||'}
;;
esac;