wok-6.x annotate rox-filer/stuff/rox-open-folder-menu.sh @ rev 10859
Up: slitaz-tools (4.4) - Big clean-up, better i18n, more GTK/Yad boxes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 18 22:33:14 2011 +0200 (2011-06-18) |
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>' |