mcl

simple minecraft launcher
git clone git://git.kocotian.pl/mcl.git
Log | Files | Refs | README | LICENSE

commit da2ca13eab9da924afcdc2a0310ecc4c87356528
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun, 22 Nov 2020 12:25:51 +0100

initial

Diffstat:
Amc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/mc b/mc @@ -0,0 +1,8 @@ +#!/bin/sh +cd $HOME/.local/share/minecraft +MCPROFILES="${MCDOTDIR:-$HOME/.config/mc}/profiles" +MCPASSWD="${MCDOTDIR:-$HOME/.config/mc}/passwd" +SELECTED="$(cat "$MCPROFILES" | sed "s/\t.*$//g" | dmenu -l 30 -p "Please select a profile:")" +ARGS="$(grep "$SELECTED" "$MCPROFILES" | cut -f2 -d" ")" +[ -e ${MCNOKILLFILE:-/tmp/mcnokill} ] || killall java +minecraft-launcher-cmd --username $(sed -n 1p "$MCPASSWD") --password $(sed -n 2p "$MCPASSWD") "$ARGS"