wok-next annotate openbox/stuff/open-folder-menu.sh @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | 4434891fab1c |
children |
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 |
mojo@16719 | 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 |
mojo@16719 | 15 <item label="$(echo $dir | sed -e 's|^[^ ]* ||' -e '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>' |