wok-6.x annotate openbox-imlib2/stuff/open-folder-menu.sh @ rev 16854

netsurf:some make opts
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Jul 13 04:58:40 2014 +0300 (2014-07-13)
parents f378aed899f6
children
rev   line source
pankso@13564 1 #!/bin/sh
pankso@13564 2 #
pascal@14757 3 # Openbox pipe menu to launch SpaceFM 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>'
pascal@14757 11 echo "spacefm ~"
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>'
pascal@14757 17 echo "spacefm ~/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>'
pascal@14757 25 echo "spacefm $dir"
pankso@13564 26 echo '</execute></action></item>'
pankso@13564 27 done
pankso@13564 28
pankso@13564 29 echo '</openbox_pipe_menu>'