wok-next view openbox/stuff/open-folder-menu.sh @ rev 15501
connman: kill dhcpd before starting
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 17 16:55:13 2013 +0100 (2013-11-17) |
parents | 372dd84badab |
children | 7309fd1536fe |
line source
1 #!/bin/sh
2 #
3 # Openbox pipe menu to launch file-manager using GTK bookmarks.
4 #
5 echo '<openbox_pipe_menu>'
7 bookmarks="~ $(whoami)
8 ~/Desktop $(gettext gtk20 Desktop)
9 $(cat ~/.gtk-bookmarks)"
11 IFS='
12 '
13 for dir in $bookmarks; do
14 cat << EOT
15 <item label="$(echo $dir | sed 's|^[^ ]* ||')">
16 <action name="Execute">
17 <execute>file-manager $(echo $dir | awk '{print $1}')</execute>
18 </action>
19 </item>
20 EOT
21 done
23 echo '</openbox_pipe_menu>'