summaryrefslogtreecommitdiff
path: root/qmenu/qmenu_vm/fqvm_run
diff options
context:
space:
mode:
authorCasper <me@skylarcloud.xyz>2024-12-23 17:13:45 -0700
committerCasper <me@skylarcloud.xyz>2024-12-23 17:13:45 -0700
commit01a33ab0913d439150065ac23644c4f140ff8917 (patch)
tree9ad71bd7e6f5a5aad2c2cdbff4bb75de12565998 /qmenu/qmenu_vm/fqvm_run
parent7b5a0e9e88f015cb68a46bb657661f4663e287af (diff)
added qmenu!
Diffstat (limited to 'qmenu/qmenu_vm/fqvm_run')
-rw-r--r--qmenu/qmenu_vm/fqvm_run14
1 files changed, 14 insertions, 0 deletions
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