This commit is contained in:
2025-10-14 15:07:10 +03:00
parent 2ada67e225
commit c4c6968a19
5 changed files with 31 additions and 12 deletions

12
scripts/open-game.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
GAMES=$(cat ~/config/scripts/lib/games.txt)
SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Play something...")
if [ -n "$SELECTED" ]; then
PLACE_ID=$(echo "$GAMES" | grep "^$SELECTED" | sed 's/.*%%% //')
if [ -n "$PLACE_ID" ]; then
exec $PLACE_ID
fi
fi