gaming
This commit is contained in:
12
scripts/open-game.sh
Executable file
12
scripts/open-game.sh
Executable 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
|
||||
Reference in New Issue
Block a user