Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- openLib=$(zenity --window-icon=$HOME/My_Stuff/Commands/Screensaver.png --width 200 --height 230 --list --title="Heyu GUI" --text "What would you like to do?" --radiolist --column "Select" --column "Function" TRUE "Erase Interface" FALSE "Upload Normal" FALSE "Upload Vacation" FALSE "Set Clock" FALSE "Change Battery")
- if [ "$?" = 1 ] ; then
- exit
- fi
- if [ "$openLib" == "Erase Interface" ] ; then
- if cat $HOME/.heyu/x10config ; then
- xterm -e "heyu erase";
- fi
- elif [ "$openLib" == "Upload Normal" ] ; then
- if cat $HOME/.heyu/x10config2 ; then
- xterm -e "heyu upload";
- elif cat $HOME/.heyu/x10config1 ; then
- mv $HOME/.heyu/x10config $HOME/.heyu/x10config2
- mv $HOME/.heyu/x10config1 $HOME/.heyu/x10config
- xterm -e "heyu upload";
- fi
- elif [ "$openLib" == "Upload Vacation" ] ; then
- if cat $HOME/.heyu/x10config1 ; then
- xterm -e "heyu upload";
- elif cat $HOME/.heyu/x10config2 ; then
- mv $HOME/.heyu/x10config $HOME/.heyu/x10config1
- mv $HOME/.heyu/x10config2 $HOME/.heyu/x10config
- xterm -e "heyu upload";
- fi
- elif [ "$openLib" == "Set Clock" ] ; then
- if cat $HOME/.heyu/x10config ; then
- xterm -e "heyu setclock";
- fi
- elif [ "$openLib" == "Change Battery" ] ; then
- if cat $HOME/.heyu/x10config ; then
- xterm -e "heyu newbattery";
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement