diff --git a/remoteapp b/remoteapp new file mode 100644 index 0000000..fa335b0 --- /dev/null +++ b/remoteapp @@ -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; \ No newline at end of file