wok-6.x annotate openbox/stuff/open-folder-menu.sh @ rev 15323

Up libpcap (1.4.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 21:51:31 2013 +0000 (2013-09-27)
parents 372dd84badab
children 7309fd1536fe
rev   line source
pankso@684 1 #!/bin/sh
pankso@684 2 #
al@14907 3 # Openbox pipe menu to launch file-manager using GTK bookmarks.
pankso@684 4 #
pankso@684 5 echo '<openbox_pipe_menu>'
pankso@684 6
al@14907 7 bookmarks="~ $(whoami)
al@14907 8 ~/Desktop $(gettext gtk20 Desktop)
al@14907 9 $(cat ~/.gtk-bookmarks)"
pankso@684 10
al@14907 11 IFS='
al@14907 12 '
al@14907 13 for dir in $bookmarks; do
al@14907 14 cat << EOT
al@14907 15 <item label="$(echo $dir | sed 's|^[^ ]* ||')">
al@14907 16 <action name="Execute">
al@14907 17 <execute>file-manager $(echo $dir | awk '{print $1}')</execute>
al@14907 18 </action>
al@14907 19 </item>
al@14907 20 EOT
pankso@684 21 done
pankso@684 22
pankso@684 23 echo '</openbox_pipe_menu>'