slitaz-tools rev 142
Add torrentbox to dl torrent with ctorrent
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 14 23:59:16 2008 +0200 (2008-04-14) |
parents | 1b7c89459369 |
children | 66c99d0f09aa |
files | tinyutils/netbox tinyutils/torrentbox |
line diff
1.1 --- a/tinyutils/netbox Mon Apr 14 11:36:39 2008 +0000 1.2 +++ b/tinyutils/netbox Mon Apr 14 23:59:16 2008 +0200 1.3 @@ -67,13 +67,13 @@ 1.4 <b>SliTaz - Netbox</b>" 1.5 </label> 1.6 </text> 1.7 - <text wrap="true" width-chars="44"> 1.8 + <text wrap="true" width-chars="48"> 1.9 <label> 1.10 " 1.11 -Manage network connections getting dynamic IP 1.12 -by DHCP or static IP, and setup servers. 1.13 -Netbox can start or stop networking, configure 1.14 -network interfaces or directly edit files. 1.15 +Manage network connections getting dynamic IP by DHCP 1.16 +or static IP, and setup servers. Netbox can start or stop 1.17 +networking, configure network interfaces or directly edit 1.18 +configuration files. 1.19 " 1.20 </label> 1.21 </text>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tinyutils/torrentbox Mon Apr 14 23:59:16 2008 +0200 2.3 @@ -0,0 +1,80 @@ 2.4 +#! /bin/sh 2.5 +# 2.6 +# Gtkdialog box to dl a torrent file with ctorrent throught a Xterm. 2.7 +# - SliTaz GNU/Linux 2008. 2.8 +# 2.9 +VERSION=2008041 2.10 + 2.11 +mkdir -p ~/Downloads 2.12 +cd ~/Downloads 2.13 + 2.14 +# We need at least devive, speed and ISO image path. 2.15 +# 2.16 +export MOUNT_DIALOG=' 2.17 +<window title="Torrentbox" icon-name="drive-optical"> 2.18 + <vbox> 2.19 + 2.20 + <text use-markup="true"> 2.21 + <label> 2.22 +" 2.23 +<b>SliTaz - Torrentbox</b>" 2.24 + </label> 2.25 + </text> 2.26 + <text wrap="true" width-chars="54" use-markup="true"> 2.27 + <label> 2.28 +" 2.29 +Download a torrent file with ctorrent. 2.30 +" 2.31 + </label> 2.32 + </text> 2.33 + 2.34 + <frame Ctorrent options> 2.35 + <hbox> 2.36 + <text use-markup="true"> 2.37 + <label>"<b>Options :</b>"</label> 2.38 + </text> 2.39 + <entry> 2.40 + <variable>DL_OPTS</variable> 2.41 + </entry> 2.42 + <button> 2.43 + <input file icon="help"></input> 2.44 + <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> 2.45 + </button> 2.46 + </hbox> 2.47 + </frame> 2.48 + 2.49 + <frame Download Torrent> 2.50 + <hbox> 2.51 + <text use-markup="true"> 2.52 + <label>"<b>File :</b>"</label> 2.53 + </text> 2.54 + <entry> 2.55 + <variable>TORRENT</variable> 2.56 + </entry> 2.57 + <button> 2.58 + <input file stock="gtk-open"></input> 2.59 + <action type="fileselect">TORRENT</action> 2.60 + </button> 2.61 + </hbox> 2.62 + </frame> 2.63 + 2.64 + <hbox> 2.65 + <button> 2.66 + <label>Download</label> 2.67 + <input file icon="forward"></input> 2.68 + <action>exec xterm -T "Ctorrent download" -e "ctorrent $DL_OPTS \"$TORRENT\" ; echo -e \"----\nENTER to close window...\" && read close"</action> 2.69 + </button> 2.70 + <button> 2.71 + <input file icon="exit"></input> 2.72 + <action type="exit">Exit</action> 2.73 + </button> 2.74 + </hbox> 2.75 + 2.76 + </vbox> 2.77 +</window> 2.78 +' 2.79 + 2.80 +# Execute main dialog. 2.81 +gtkdialog --program=MOUNT_DIALOG 2.82 + 2.83 +exit 0