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

Up: tazwok-experimental to 0.0.6.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Feb 16 18:43:46 2011 +0000 (2011-02-16)
parents
children 372dd84badab
rev   line source
pankso@684 1 #!/bin/sh
pankso@684 2 #
pankso@684 3 # Openbox pipe menu to launch PCmanFM using GTK bookmarks.
pankso@684 4 #
pankso@684 5
pankso@684 6 echo '<openbox_pipe_menu>'
pankso@684 7
pankso@684 8 # Home
pankso@684 9 echo '<item label="Home">'
pankso@684 10 echo '<action name="Execute"><execute>'
pankso@684 11 echo "pcmanfm ~"
pankso@684 12 echo '</execute></action></item>'
pankso@684 13
pankso@684 14 # ~/Desktop
pankso@684 15 echo '<item label="Desktop">'
pankso@684 16 echo '<action name="Execute"><execute>'
pankso@684 17 echo "pcmanfm ~/Desktop"
pankso@684 18 echo '</execute></action></item>'
pankso@684 19
pankso@684 20 # GTK bookmarks
pankso@684 21 for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks`
pankso@684 22 do
pankso@684 23 echo '<item label="'`basename $dir`'">'
pankso@684 24 echo '<action name="Execute"><execute>'
pankso@684 25 echo "pcmanfm $dir"
pankso@684 26 echo '</execute></action></item>'
pankso@684 27 done
pankso@684 28
pankso@684 29 echo '</openbox_pipe_menu>'