summaryrefslogtreecommitdiff
path: root/qmenu/qmenu_vm/fqvm_run
blob: 18db4f34f8b02e86d228de1111f59029786a2147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if user=$(printf 'Default user\nRoot' | dmenu-unlinked -i -l 2 -p "Run commands as:"); then

	[ "$user" = Root ] && as_root='-u root' && user=# || user=$

	commandtr=1

	while [ -n "$commandtr" ]; do

		if commandtr=$(: | dmenu-unlinked -p "[@$qube]$user"); then

			qvm-run -q $as_root "$qube" "$commandtr"&
 		fi
	done
fi