slitaz-tools rev 560
tazdrop: tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Apr 18 18:40:20 2011 +0100 (2011-04-18) |
parents | 62af4389c652 |
children | 32be2ab4ac50 |
files | tazdrop/README tazdrop/tazdrop tazdrop/tazdrop.conf |
line diff
1.1 --- a/tazdrop/README Mon Apr 18 18:11:21 2011 +0100 1.2 +++ b/tazdrop/README Mon Apr 18 18:40:20 2011 +0100 1.3 @@ -2,21 +2,21 @@ 1.4 ================================================================================ 1.5 1.6 1.7 -TazDrop is as small window wich can run in a corder of screen on as an expanded 1.8 -panel and let you Drag N' Drop any kind of content and get an action on it. 1.9 -You drop an URL if it il a site it will open a browser to this location, if 1.10 -the URL is a file (tarball, iso, PDF, etc) it will downloaded it. It also handle 1.11 -email addresse, SliTaz Packages (drop one on TazDrop it will install it) and 1.12 -if you drop a folder it will create an tar.bz2 archive of it. You can even 1.13 -drop one of it's options, try to drop: --notes 1.14 +TazDrop is a small window which can run in a corner of a screen and as an 1.15 +expanded panel and let you Drag N' Drop any kind of content and perform an 1.16 +action on it. If you drop an URL to a site it will open a browser to its 1.17 +location, if the URL is a file (tarball, iso, PDF, etc) it will download it. 1.18 +It can also handle email addresses, SliTaz Packages (drop one on TazDrop and 1.19 +it will install it) and if you drop a folder it will create a tar.bz2 archive 1.20 +of it. You can even drop one of its options, try to drop: --notes 1.21 1.22 -Note: This tool is sepatated from tazboxes since it's run pemanently and have 1.23 -quiet a few lines of code. 1.24 +Note: This tool is separate from tazboxes since it runs permanently and has 1.25 +quite a few lines of code. 1.26 1.27 1.28 Auto start the DND window 1.29 ------------------------- 1.30 -To start TazDrop with your Window manager you have to put thes line in your 1.31 +To start TazDrop with your Window manager you have to put these lines in your 1.32 autostart script (For Openbox: ~/.config/openbox/autostart.sh) 1.33 1.34 # TazDrop Drag N' Drop handler 1.35 @@ -26,7 +26,7 @@ 1.36 Skip task bar in Openbox 1.37 ------------------------ 1.38 To not show the apps in the panel (lxpanel, tint2) you must add these 1.39 -settings to your Openbox rc.xml ater <applications> at the bottom of 1.40 +settings to your Openbox rc.xml after <applications> at the bottom of 1.41 the file: 1.42 1.43 <application name="tazdrop"> 1.44 @@ -38,10 +38,10 @@ 1.45 Misc notes 1.46 ---------- 1.47 1.48 - * Dropped folder will be archived in tar.bz2 1.49 - * Text content is wrote to $HOME/.cache/tazdrop.notes 1.50 - * Applications are logically configurable as wel as the tool 1.51 - behavour 1.52 + * Dropped folders will be archived to tar.bz2 1.53 + * Text content is written to $HOME/.cache/tazdrop.notes 1.54 + * Applications are logically configurable as well as the tool 1.55 + behaviour 1.56 1.57 1.58 ================================================================================
2.1 --- a/tazdrop/tazdrop Mon Apr 18 18:11:21 2011 +0100 2.2 +++ b/tazdrop/tazdrop Mon Apr 18 18:40:20 2011 +0100 2.3 @@ -2,7 +2,7 @@ 2.4 # 2.5 # SliTaz Drag N' Drop tool! Just put whatever you want on the tiny box 2.6 # or the expanded panel and it will deal with it. Or at least it will 2.7 -# try, since we are in the first stage of the tool 2.8 +# try, since we are in the first stages of the tool. 2.9 # 2.10 # Copyright (C) 2011 SliTaz GNU/linux - BSD License 2.11 # - Christophe Lincoln <pankso@slitaz.org> 2.12 @@ -30,8 +30,8 @@ 2.13 $(gettext "Usage:") $(basename $0) [--option|file|url] 2.14 2.15 $(gettext "Options:") 2.16 - --usage $(gettext "Display this samll help") 2.17 - --dnd $(gettext "Display the desktop Drad N' Drop window") 2.18 + --usage $(gettext "Display this small help") 2.19 + --dnd $(gettext "Display the desktop Drag N' Drop window") 2.20 --notes $(gettext "Display your dropped text notes") 2.21 2.22 EOT 2.23 @@ -45,7 +45,7 @@ 2.24 EOT 2.25 } 2.26 2.27 -# Get and install a package from URL 2.28 +# Get and install a package from an URL 2.29 get_install_pkg() { 2.30 tmp=$DOWNLOADS/$$ 2.31 mkdir -p $tmp 2.32 @@ -117,7 +117,7 @@ 2.33 # Drag and drop handler, uritype first filetype after. 2.34 # 2.35 # Use 'xdg-open' & 'xdg-mime query filetype /path/to/file', 2.36 -# both needs xprop (on slitaz we have obxprop from openbox)? 2.37 +# both need xprop (on slitaz we have obxprop from openbox)? 2.38 # 2.39 case "$drop" in 2.40 file:///*) 2.41 @@ -141,14 +141,14 @@ 2.42 pkg=$(basename $file) 2.43 $TERMINAL -e "su -c \"cd $dir && tazpkg install ${pkg%/}\"" & ;; 2.44 *.desktop) 2.45 - # Exec *.desktop file so they can be used in a non 2.46 + # Exec *.desktop files so they can be used in a non 2.47 # Freedesktop environment (Ex: Ob/tint2/emlfm2) 2.48 file=${drop#file://} 2.49 exec=$(fgrep Exec= "$file" | sed s'/Exec=//') 2.50 $exec & ;; 2.51 *) 2.52 - # May we have a directory dropped to be tarbalize! 2.53 - # Let leave the tarball in the same the directory. 2.54 + # Can a directory dropped be tarbalized! 2.55 + # Lets leave the tarball in the same directory. 2.56 file=${drop#file://} 2.57 if [ -d "$file" ]; then 2.58 cd $(dirname $file)
3.1 --- a/tazdrop/tazdrop.conf Mon Apr 18 18:11:21 2011 +0100 3.2 +++ b/tazdrop/tazdrop.conf Mon Apr 18 18:40:20 2011 +0100 3.3 @@ -1,7 +1,7 @@ 3.4 # TazDrop configuration file 3.5 # 3.6 3.7 -# Favorites applications used by TazDrop 3.8 +# Favorite applications used by TazDrop 3.9 TERMINAL="xterm -geometry 80x10+0-24" 3.10 3.11 # Files 3.12 @@ -20,12 +20,12 @@ 3.13 # Paths to downloaded files 3.14 DOWNLOADS="$HOME/Downloads" 3.15 3.16 -# TazDrop behavour for --dnd and --dnd-image 3.17 +# TazDrop behaviour for --dnd and --dnd-image 3.18 DROP_SIZE="120x24" 3.19 DROP_GEOM="+0-0" 3.20 DROP_TEXT=" Drag N' Drop" 3.21 DROP_IMAGE="slitaz-menu" 3.22 3.23 -# Include your applications.conf to owerwite TazDrop EDITOR 3.24 +# Include your applications.conf to overwrite TazDrop EDITOR 3.25 # BROWSER and TERMINAL 3.26 #. $HOME/.config/slitaz/applications.conf