47 lines
982 B
Bash
47 lines
982 B
Bash
#!/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; |