slitaz-tools rev 631

tazdrop: use new yad --skip-taskbar (dev did my request :-)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jun 16 19:27:42 2011 +0200 (2011-06-16)
parents 75d3beebab35
children 21047e4243e0
files tazdrop/README tazdrop/tazdrop
line diff
     1.1 --- a/tazdrop/README	Thu Jun 16 19:00:56 2011 +0200
     1.2 +++ b/tazdrop/README	Thu Jun 16 19:27:42 2011 +0200
     1.3 @@ -17,22 +17,16 @@
     1.4  Auto start the DND window
     1.5  -------------------------
     1.6  To start TazDrop with your Window manager you have to put these lines in your
     1.7 -autostart script (For Openbox: ~/.config/openbox/autostart.sh)
     1.8 +autostart script (For Openbox: ~/.config/openbox/autostart.sh) to have a DND
     1.9 +window with some text:
    1.10  
    1.11  # TazDrop Drag N' Drop handler
    1.12  tazdrop --dnd &
    1.13  
    1.14 +To use an image as DND box, you can configure the image path via tazdrop.conf:
    1.15  
    1.16 -Skip task bar in Openbox
    1.17 -------------------------
    1.18 -To not show the apps in the panel (lxpanel, tint2) you must add these
    1.19 -settings to your Openbox rc.xml after <applications> at the bottom of
    1.20 -the file:
    1.21 -
    1.22 -  <application name="tazdrop">
    1.23 -    <focus>no</focus>
    1.24 -    <skip_taskbar>yes</skip_taskbar>
    1.25 -  </application>
    1.26 +# TazDrop Drag N' Drop handler
    1.27 +tazdrop --dnd-image &
    1.28  
    1.29  
    1.30  Misc notes
     2.1 --- a/tazdrop/tazdrop	Thu Jun 16 19:00:56 2011 +0200
     2.2 +++ b/tazdrop/tazdrop	Thu Jun 16 19:27:42 2011 +0200
     2.3 @@ -32,9 +32,10 @@
     2.4  $(gettext "Usage:") $(basename $0) [--option|file|url]
     2.5  
     2.6  $(gettext "Options:")
     2.7 -  --usage  $(gettext "Display this small help")
     2.8 -  --dnd    $(gettext "Display the desktop Drag N' Drop window")
     2.9 -  --notes  $(gettext "Display your dropped text notes")
    2.10 +  --usage      $(gettext "Display this small help")
    2.11 +  --dnd        $(gettext "Display the desktop Drag N' Drop window")
    2.12 +  --dnd-image  $(gettext "Display the desktop Drag N' Drop image")
    2.13 +  --notes      $(gettext "Display your dropped text notes")
    2.14  
    2.15  EOT
    2.16  }
    2.17 @@ -60,7 +61,7 @@
    2.18  drop_main() {
    2.19  	yad --text "$DROP_TEXT" \
    2.20  		--geometry="${DROP_SIZE}$DROP_GEOM" \
    2.21 -		--name="tazdrop" \
    2.22 +		--name="tazdrop" --skip-taskbar \
    2.23  		--dnd --sticky --on-top \
    2.24  		--undecorated --no-buttons \
    2.25  		--command="$0"
    2.26 @@ -69,8 +70,8 @@
    2.27  # Image GUI function
    2.28  drop_image() {
    2.29  	yad --image=$DROP_IMAGE \
    2.30 -		--geometry="$DROP_GEOM" \
    2.31 -		--name="tazdrop" \
    2.32 +		--geometry="$DROP_IMAGE_GEOM" \
    2.33 +		--name="tazdrop" --skip-taskbar \
    2.34  		--dnd --sticky --on-top \
    2.35  		--undecorated --no-buttons \
    2.36  		--command="$0"