#!/bin/bash
# openbox_VirtualBox_pipemenu.sh - VirtualBox launcher for openbox
# initially created 2013 - Ryan Fantus for PlayOnLinux
#
# command to launch VirtualBox
VBox_launcher_command='VBoxManage startvm '
function generate_vbox_menu {
VBoxManage list vms | awk -F '"' '{print $2}' | while read; do
echo '- '
echo -n ''
echo -n "$VBox_launcher_command '${REPLY}'"
echo ''
echo '
'
done
}
echo ''
echo ''
# First, we'll create a launcher specifically for PlayOnLinux
echo '- '
echo -n ''
echo -n "virtualbox"
echo ''
echo '
'
generate_vbox_menu
echo ''