wok-4.x annotate openbox/stuff/open-folder-menu.sh @ rev 7994

Up: pcre to 8.12.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jan 17 21:54:12 2011 +0000 (2011-01-17)
parents
children
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>'