dotfiles/.config/i3/factorio.sh!

10 lines
189 B
Bash

#!/bin/bash
INSTANCE=$(ls ~/Documents/Games/Factorio/Modpacks/ | rofi -dmenu -i)
echo $INSTANCE
if test -n "$INSTANCE"; then
$(<"${INSTANCE}/pack.conf") --mod-directory $INSTANCE
fi