From b435e0d92c6543a6ca5cd2b608294b0d7f20d590 Mon Sep 17 00:00:00 2001 From: sudacode Date: Mon, 29 Dec 2025 22:53:58 -0800 Subject: [PATCH] add steam texthooker launcher --- .config/rofi/scripts/rofi-launch-texthooker-steam.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .config/rofi/scripts/rofi-launch-texthooker-steam.sh diff --git a/.config/rofi/scripts/rofi-launch-texthooker-steam.sh b/.config/rofi/scripts/rofi-launch-texthooker-steam.sh new file mode 100755 index 0000000..497069e --- /dev/null +++ b/.config/rofi/scripts/rofi-launch-texthooker-steam.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +PROGRAM="$HOME/S/lutris/wineprefix/drive_c/users/steamuser/luna-translator/LunaTranslator.exe" +SELECTION="$(protontricks -l | tail -n +2 | rofi -dmenu -theme ~/.config/rofi/launchers/type-2/style-2.rasi -theme-str 'listview {lines: 12; columns: 1;}' -i -p "Select game" | awk '{print $NF}' | tr -d '()')" + +if [[ -z "$SELECTION" ]]; then + printf "%s\n" "No game selected" + exit 1 +fi + +printf "%s\n" "Launching $PROGRAM for game ID: $SELECTION" +protontricks-launch --appid "$SELECTION" "$PROGRAM" &>/dev/null &