wok annotate rox-filer/stuff/rox-open-folder-menu.sh @ rev 5989
busybox-static: update build_depend
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 14 14:36:15 2010 +0200 (2010-08-14) |
parents | |
children |
rev | line source |
---|---|
sygne@998 | 1 #!/bin/sh |
sygne@998 | 2 # |
sygne@998 | 3 # Openbox pipe menu to launch rox-filer using GTK bookmarks. |
sygne@998 | 4 # |
sygne@998 | 5 |
sygne@998 | 6 echo '<openbox_pipe_menu>' |
sygne@998 | 7 |
sygne@998 | 8 # Home |
sygne@998 | 9 echo '<item label="Home">' |
sygne@998 | 10 echo '<action name="Execute"><execute>' |
sygne@998 | 11 echo "rox-filer ~" |
sygne@998 | 12 echo '</execute></action></item>' |
sygne@998 | 13 |
sygne@998 | 14 |
sygne@998 | 15 |
sygne@998 | 16 # GTK bookmarks |
sygne@998 | 17 for dir in `sed 's/[ ][^ ]*$//' .gtk-bookmarks | sed 's!file://!!'` |
sygne@998 | 18 do |
sygne@998 | 19 echo '<item label="'`basename $dir`'">' |
sygne@998 | 20 echo '<action name="Execute"><execute>' |
sygne@998 | 21 echo "rox-filer $dir" |
sygne@998 | 22 echo '</execute></action></item>' |
sygne@998 | 23 done |
sygne@998 | 24 |
sygne@998 | 25 echo '</openbox_pipe_menu>' |