summaryrefslogtreecommitdiff
path: root/launch
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-23 22:20:14 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-23 22:20:14 -0600
commitf4b77c42ca78c5265c4754caeef5289e3841f5e9 (patch)
treebad69cda55721e2230d909b16d438f4472105db1 /launch
parent63505f644d8f2bf8c9d4ca493048081f83532cf8 (diff)
downloadscripts-f4b77c42ca78c5265c4754caeef5289e3841f5e9.tar.xz
scripts-f4b77c42ca78c5265c4754caeef5289e3841f5e9.zip
some youtube dl script and dmenu runapplication and test timmywm and modified other scripts idjlol
Diffstat (limited to 'launch')
-rwxr-xr-xlaunch/dmenu_runapp4
-rwxr-xr-xlaunch/virt6
2 files changed, 7 insertions, 3 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp
new file mode 100755
index 0000000..bf0e148
--- /dev/null
+++ b/launch/dmenu_runapp
@@ -0,0 +1,4 @@
+#!/bin/sh
+apps=/usr/share/applications
+name="$(grep -rh -m1 '^Name=' $apps | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
+$(grep '^Exec=[^%]*' -o -m1 $(grep -rl -m1 "$name" $apps) | cut -d'=' -f2-) &
diff --git a/launch/virt b/launch/virt
index f1035a0..9706106 100755
--- a/launch/virt
+++ b/launch/virt
@@ -10,15 +10,15 @@ startvm() {
-m $(halfram) \
-smp $(halfthreads) \
-net nic \
- -nographic \
- -vga none \
+ -display sdl,gl=on \
-audiodev pa,id=pa1,server=/run/user/1000/pulse/native \
-soundhw all \
-boot menu=on \
-drive file="$virtdir/$1.img" \
; }
+ #-vga none \
+ #-nographic \
- #-display sdl,gl=on \
vms="$(ls $virtdir)"
[ -n "$1" ] && vm="$1" || vm=$(echo "$vms" | sed 's/\.img//' | dmenu -p "Choose Virtual Machine Image or Enter Name for New Virtual Machine")