wok annotate ctorrent-dnh/stuff/torrentbox @ rev 5533

mesa-dri-ati : add new r600_dri.so; drop mesa-dri dep
author Rohit Joshi <jozee@slitaz.org>
date Tue May 11 15:37:43 2010 -0400 (2010-05-11)
parents
children
rev   line source
pankso@1764 1 #! /bin/sh
pankso@1764 2 #
pankso@1764 3 # Gtkdialog box to dl a torrent file with ctorrent throught a Xterm.
pankso@1764 4 # - SliTaz GNU/Linux 2008.
pankso@1764 5 #
pankso@1764 6 VERSION=2008041
pankso@1764 7
pankso@1764 8 mkdir -p ~/Downloads
pankso@1764 9 cd ~/Downloads
pankso@1764 10
pankso@1764 11 # We need at least a torrent filename.
pankso@1764 12 #
pankso@1764 13 export MOUNT_DIALOG='
pankso@1764 14 <window title="Torrentbox" icon-name="drive-optical">
pankso@1764 15 <vbox>
pankso@1764 16
pankso@1764 17 <text use-markup="true">
pankso@1764 18 <label>
pankso@1764 19 "
pankso@1764 20 <b>SliTaz - Torrentbox</b>"
pankso@1764 21 </label>
pankso@1764 22 </text>
pankso@1764 23 <text wrap="true" width-chars="54" use-markup="true">
pankso@1764 24 <label>
pankso@1764 25 "
pankso@1764 26 Download a torrent file with ctorrent.
pankso@1764 27 "
pankso@1764 28 </label>
pankso@1764 29 </text>
pankso@1764 30
pankso@1764 31 <frame Ctorrent options>
pankso@1764 32 <hbox>
pankso@1764 33 <text use-markup="true">
pankso@1764 34 <label>"<b>Options :</b>"</label>
pankso@1764 35 </text>
pankso@1764 36 <entry>
pankso@1764 37 <variable>DL_OPTS</variable>
pankso@1764 38 </entry>
pankso@1764 39 <button>
pankso@1764 40 <input file icon="help"></input>
pankso@1764 41 <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x46 -T "ctorrent help" -e "ctorrent -h ; echo -e \"----\nENTER to continue...\" && read close"</action>
pankso@1764 42 </button>
pankso@1764 43 </hbox>
pankso@1764 44 </frame>
pankso@1764 45
pankso@1764 46 <frame Download Torrent>
pankso@1764 47 <hbox>
pankso@1764 48 <text use-markup="true">
pankso@1764 49 <label>"<b>File :</b>"</label>
pankso@1764 50 </text>
pankso@1764 51 <entry>
pankso@1764 52 <variable>TORRENT</variable>
pankso@1764 53 </entry>
pankso@1764 54 <button>
pankso@1764 55 <input file stock="gtk-open"></input>
pankso@1764 56 <action type="fileselect">TORRENT</action>
pankso@1764 57 </button>
pankso@1764 58 </hbox>
pankso@1764 59 </frame>
pankso@1764 60
pankso@1764 61 <hbox>
pankso@1764 62 <button>
pankso@1764 63 <label>Download</label>
pankso@1764 64 <input file icon="forward"></input>
pankso@1764 65 <action>exec xterm -T "Ctorrent download" -e "ctorrent $DL_OPTS \"$TORRENT\" ; echo -e \"----\nENTER to close window...\" && read close"</action>
pankso@1764 66 </button>
pankso@1764 67 <button>
pankso@1764 68 <input file icon="exit"></input>
pankso@1764 69 <action type="exit">Exit</action>
pankso@1764 70 </button>
pankso@1764 71 </hbox>
pankso@1764 72
pankso@1764 73 </vbox>
pankso@1764 74 </window>
pankso@1764 75 '
pankso@1764 76
pankso@1764 77 # Execute main dialog.
pankso@1764 78 gtkdialog --program=MOUNT_DIALOG
pankso@1764 79
pankso@1764 80 exit 0