wok view openbox/stuff/open-folder-menu.sh @ rev 22889

updated gst-plugins-base-1.0, gst-plkugins-base-1.0-dev and gst-plugins-good-1.0 (1.10.1 -> 1.16.2)
author Hans-G?nter Theisgen
date Sun Feb 23 07:34:45 2020 +0100 (2020-02-23)
parents 4434891fab1c
children
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 -e 's|^[^ ]* ||' -e '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>'