From 01a33ab0913d439150065ac23644c4f140ff8917 Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 23 Dec 2024 17:13:45 -0700 Subject: added qmenu! --- qmenu/qmenu_vm/fqvm_run | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 qmenu/qmenu_vm/fqvm_run (limited to 'qmenu/qmenu_vm/fqvm_run') diff --git a/qmenu/qmenu_vm/fqvm_run b/qmenu/qmenu_vm/fqvm_run new file mode 100644 index 0000000..18db4f3 --- /dev/null +++ b/qmenu/qmenu_vm/fqvm_run @@ -0,0 +1,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 -- cgit v1.2.3