Created
November 22, 2010 09:33
-
-
Save yas375/709740 to your computer and use it in GitHub Desktop.
I put this cript inton ~/bin/windows file
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/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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Иконка: http://ensiwiki.ensimag.fr/images/thumb/b/ba/Windows.png/40px-Windows.png
Я добавил кнопку с иконкой в панельку: http://clip2net.com/clip/m30114/1290418704-2010-11-22-113840_327x339_scrot-28kb.png
И вот как выглядит диалог при запуске: http://clip2net.com/clip/m30114/1290418849-2010-11-22-114105_328x241_scrot-11kb.png