Skip to content

Instantly share code, notes, and snippets.

@grncdr
Created March 29, 2010 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grncdr/347319 to your computer and use it in GitHub Desktop.
Save grncdr/347319 to your computer and use it in GitHub Desktop.
#!/bin/sh
_command_prefix=${@:2}
echo '<openbox_pipe_menu>'
for i in `$1`; do
echo "<item label=\"$i\">"
echo '<action name="Execute">'
echo "<command>$_command_prefix $i</command>"
echo '</action>'
echo '</item>'
done
echo '</openbox_pipe_menu>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment