summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
l---------bin/rstudio1
-rwxr-xr-xbin/steam-launcher15
2 files changed, 15 insertions, 1 deletions
diff --git a/bin/rstudio b/bin/rstudio
deleted file mode 120000
index b4ed8cc..0000000
--- a/bin/rstudio
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/rstudio/rstudio
\ No newline at end of file
diff --git a/bin/steam-launcher b/bin/steam-launcher
new file mode 100755
index 0000000..4504469
--- /dev/null
+++ b/bin/steam-launcher
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+GAME=$(cat $(find ~/.local/share/Steam/steamapps/ -maxdepth 1 -type f -name '*.acf') | grep "name" | grep -v "Steam" | grep -v "Proton" | sed 's/.$//' | cut -d'"' -f2- | cut -d'"' -f2- | cut -d'"' -f2- | dmenu)
+
+if [ $? -ne 0 ]; then
+    exit 1
+fi
+
+
+APPID=$(grep -rl --include="*.acf" "$GAME" ~/.local/share/Steam/steamapps | cut -d'_' -f2- | sed 's/\.acf$//')
+
+
+echo "'$GAME' with id '$APPID' will be executed"
+
+steam steam://launch/$APPID