Last active
July 19, 2017 18:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/meoso/b46b441b31344804c6837829e059c2b8