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

evince: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 02 08:49:43 2011 +0200 (2011-08-02)
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>'