wok-stable view openbox/stuff/open-folder-menu.sh @ rev 10772
Trying to make a tazdev-like receip with source from slitaz-dev-tools, in order to get yaff cooked properly
author | Babaorum |
---|---|
date | Tue May 31 21:49:58 2011 +0100 (2011-05-31) |
parents | |
children |
line source
1 #!/bin/sh
2 #
3 # Openbox pipe menu to launch PCmanFM using GTK bookmarks.
4 #
6 echo '<openbox_pipe_menu>'
8 # Home
9 echo '<item label="Home">'
10 echo '<action name="Execute"><execute>'
11 echo "pcmanfm ~"
12 echo '</execute></action></item>'
14 # ~/Desktop
15 echo '<item label="Desktop">'
16 echo '<action name="Execute"><execute>'
17 echo "pcmanfm ~/Desktop"
18 echo '</execute></action></item>'
20 # GTK bookmarks
21 for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks`
22 do
23 echo '<item label="'`basename $dir`'">'
24 echo '<action name="Execute"><execute>'
25 echo "pcmanfm $dir"
26 echo '</execute></action></item>'
27 done
29 echo '</openbox_pipe_menu>'