Skip to content

Instantly share code, notes, and snippets.

@yas375
Created November 22, 2010 09:33
Show Gist options
  • Select an option

  • Save yas375/709740 to your computer and use it in GitHub Desktop.

Select an option

Save yas375/709740 to your computer and use it in GitHub Desktop.
I put this cript inton ~/bin/windows file
#!/bin/sh
# is zenity avaliable in the system?
which zenity > /dev/null
if [ $? -eq 1 ]
then
echo "Вы должны установить zenity для отрисовки диалогов этим скриптом."
echo -e "Сделать это можно выполнив: \033[1msudo apt-get install zenity\033[0m"
exit 1
fi
command="rdesktop -u admin -p admin -k en-us 192.168.0.99"
mode=$(zenity --list --title "WinStarter by yas" --text "Выбери способ загрузки" --column "Разрешение" "1024x768" "1280x800" "full screen")
case $mode in
"1024x768")
${command} -g 1024x768
;;
"1280x800")
${command} -g 1280x800
;;
"full screen")
zenity --info --title "WinStarter by yas" --text "Для выхода из полноэкранного режима используй Ctrl+Alt+Enter"
${command} -f
;;
esac
@yas375
Copy link
Author

yas375 commented Nov 22, 2010

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