My NixOS configurations + dotfiles
at main 12 lines 299 B view raw
1#!/usr/bin/env bash 2 3GAMES=$(cat ~/config/scripts/lib/games.txt) 4 5SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Meklēt spēli...") 6 7if [ -n "$SELECTED" ]; then 8 PLACE_ID=$(echo "$GAMES" | grep "^$SELECTED" | sed 's/.*%%% //') 9 if [ -n "$PLACE_ID" ]; then 10 exec $PLACE_ID 11 fi 12fi