EXAMPLES

        #!/bin/bash
        # we got a key combination
        if [ "$1" = "key" ];
        then
        	# we only got one argument 'key'
        	# list all supported combinations with echo
        	if [ $# -eq 1 ];
        	then
        		echo "ctrl+alt+f1"
        		echo "ctrl+alt+f2"
        	else
        		# We want the action for a single combination
        		# use 'key-local' to not forward to RDP session
        		if [ "$2" = "ctrl+alt+f1" ];
        		then
        			echo "key-local"
        		fi
        		if [ "$2" = "ctrl+alt+f2" ];
        		then
        				echo "/usr/local/bin/somescript.sh"
        		fi
        	fi
        fi
        if [ "$1" = "xevent" ];
        	then
        		if [ $# -eq 1 ];
        		then
        			echo "FocusIn"
        			echo "SelectionClear"
        		else
        			if [ "$2" = "SelectionNotify" ];
        			then
        				echo "/usr/local/bin/someprogram"
        			fi
        		fi
        	fi
    Example action script for key events, listing ctrl+alt+f1 to be handled by local window manager and ctrl+alt+f2 executing a script

    The return value of the program determines if the key is handled locally or remotely (0 for local, > 0 for remote, < 0 for errors)

@MANPAGE_NAME@ connection.rdp /p:Pwd123! /f
    Connect in fullscreen mode using a stored configuration connection.rdp and the password Pwd123!

@MANPAGE_NAME@ /u:USER /size:50%h /v:rdp.contoso.com
    Connect to host rdp.contoso.com with user USER and a size of 50 percent of the height. If width (w) is set instead of height (h) like /size:50%w. 50 percent of the width is used.

@MANPAGE_NAME@ /u:CONTOSO\\JohnDoe /p:Pwd123! /v:rdp.contoso.com
    Connect to host rdp.contoso.com with user CONTOSO\\JohnDoe and password Pwd123!

@MANPAGE_NAME@ /u:JohnDoe /p:Pwd123! /w:1366 /h:768 /v:192.168.1.100:4489
    Connect to host 192.168.1.100 on port 4489 with user JohnDoe, password Pwd123!. The screen width is set to 1366 and the height to 768

@MANPAGE_NAME@ /u:JohnDoe /p:Pwd123! /vmconnect:C824F53E-95D2-46C6-9A18-23A5BB403532 /v:192.168.1.100
    Establish a connection to host 192.168.1.100 with user JohnDoe, password Pwd123! and connect to Hyper-V console (use port 2179, disable negotiation) with VMID C824F53E-95D2-46C6-9A18-23A5BB403532

+clipboard
    Activate clipboard redirection

/drive:home,/home/user
    Activate drive redirection of /home/user as home drive

/smartcard:<device>
    Activate smartcard redirection for device device

/printer:<device>,<driver>
    Activate printer redirection for printer device using driver driver

/serial:<device>
    Activate serial port redirection for port device

/parallel:<device>
    Activate parallel port redirection for port device

/sound:sys:alsa
    Activate audio output redirection using device sys:alsa

/microphone:sys:alsa
    Activate audio input redirection using device sys:alsa

/multimedia:sys:alsa
    Activate multimedia redirection using device sys:alsa

/usb:id,dev:054c:0268
    Activate USB device redirection for the device identified by 054c:0268

/kbd:remap:29=58,remap:58=29
    Swap left Control (29) and Caps Lock (58).