def cmd_vbox_launch(): o = output(shdmenu(cut(vboxmanage('list', 'vms'), '-d"', '-f2'))) vboxmanage('-q', 'startvm', o, '--type', 'gui')
def dmenu(args): if isinstance(args, typing.Iterable): args = '\n'.join(args) return shdmenu(_in=args)