wok annotate rox-filer/stuff/rox-open-folder-menu.sh @ rev 3720
Update: xorg-libXft (DEPENDS)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Tue Jul 21 14:55:12 2009 +0000 (2009-07-21) |
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>' |