Skip to content

Instantly share code, notes, and snippets.

@meoso
Last active July 19, 2017 18:42
Show Gist options
  • Save meoso/697f787adc42558b91c7e61af33cd3d4 to your computer and use it in GitHub Desktop.
Save meoso/697f787adc42558b91c7e61af33cd3d4 to your computer and use it in GitHub Desktop.
remmina wrapper - script to launch remmina from xfce panel launcher; also re-focuses; also kills
#!/bin/bash
shift_state=$(sudo ~/scripts/shift_state) #https://gist.github.com/meoso/b46b441b31344804c6837829e059c2b8
if (( $shift_state )) ; then
killall remmina
rm -f ~/.freerdp/known_hosts
else
RWindow=""
RWindow=$(wmctrl -l | grep "Remmina Remote Desktop Client")
if [ -z "$RWindow" ]
then
remmina&
else
wmctrl -a "Remmina Remote Desktop Client"
wmctrl -r "Remmina Remote Desktop Client" -b remove,shaded
fi
fi
@meoso
Copy link
Author

meoso commented Jul 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment