dotfiles/.config/i3/factorio.sh

11 lines
253 B
Bash
Raw Normal View History

2019-07-20 12:14:25 +02:00
#!/bin/sh
PACKPATH="$HOME/Games/Factorio/Modpacks/"
INSTANCE=$(ls $PACKPATH | rofi -dmenu -i)
echo $INSTANCE
if test -n "$INSTANCE"; then
cd $(<"${PACKPATH}${INSTANCE}/pack.conf") && padsp ./factorio --mod-directory ${PACKPATH}${INSTANCE}/ &
fi