wok annotate openbox/stuff/open-folder-menu.sh @ rev 1515
newt: fix python version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 06 19:25:40 2008 +0000 (2008-10-06) |
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>' |