wok annotate openbox-imlib2/stuff/open-folder-menu.sh @ rev 14017

Up gst-plugins-base (0.10.36)
author Dominique Corbex <domcox@slitaz.org>
date Sun Feb 17 19:55:44 2013 +0100 (2013-02-17)
parents
children 372dd84badab
rev   line source
pankso@13564 1 #!/bin/sh
pankso@13564 2 #
pankso@13564 3 # Openbox pipe menu to launch PCmanFM using GTK bookmarks.
pankso@13564 4 #
pankso@13564 5
pankso@13564 6 echo '<openbox_pipe_menu>'
pankso@13564 7
pankso@13564 8 # Home
pankso@13564 9 echo '<item label="Home">'
pankso@13564 10 echo '<action name="Execute"><execute>'
pankso@13564 11 echo "pcmanfm ~"
pankso@13564 12 echo '</execute></action></item>'
pankso@13564 13
pankso@13564 14 # ~/Desktop
pankso@13564 15 echo '<item label="Desktop">'
pankso@13564 16 echo '<action name="Execute"><execute>'
pankso@13564 17 echo "pcmanfm ~/Desktop"
pankso@13564 18 echo '</execute></action></item>'
pankso@13564 19
pankso@13564 20 # GTK bookmarks
pankso@13564 21 for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks`
pankso@13564 22 do
pankso@13564 23 echo '<item label="'`basename $dir`'">'
pankso@13564 24 echo '<action name="Execute"><execute>'
pankso@13564 25 echo "pcmanfm $dir"
pankso@13564 26 echo '</execute></action></item>'
pankso@13564 27 done
pankso@13564 28
pankso@13564 29 echo '</openbox_pipe_menu>'