wok-next view rox-filer/stuff/menu.sh @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | |
children |
line source
1 #!/bin/sh
2 #
3 # Openbox pipe menu to launch rox-filer using GTK bookmarks.
4 #
6 cat <<EOT
7 <openbox_pipe_menu>
8 <item label="Home">
9 <action name="Execute">
10 <execute>rox-filer ~</execute>
11 </action>
12 </item>
13 EOT
16 # GTK bookmarks
17 for dir in $(sed 's/[ ][^ ]*$//' .gtk-bookmarks | sed 's!file://!!'); do
18 label=$(basename $dir)
19 cat <<EOT
20 <item label="$label">
21 <action name="Execute">
22 <execute>rox-filer $dir</execute>
23 </action>
24 </item>
25 EOT
26 done
28 echo '</openbox_pipe_menu>'