diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 23:16:01 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 23:16:01 +0200 | 
| commit | 7277e2cdd10f894d75fcb0fd3d06be6eb2a476fd (patch) | |
| tree | e268690a77c916ae93bdf032f932db4d2f4aae7a /bin/extra/gml | |
| parent | a3aca5cf6bc7e5c3d9623e48f4c57ea4745d62dd (diff) | |
| parent | 742f9d99da745f639df1f321a5580fd5b19c19ef (diff) | |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/gml')
| -rwxr-xr-x | bin/extra/gml | 33 | 
1 files changed, 18 insertions, 15 deletions
diff --git a/bin/extra/gml b/bin/extra/gml index 0f2f143..f8d6b7e 100755 --- a/bin/extra/gml +++ b/bin/extra/gml @@ -32,14 +32,14 @@ minecraft()  				-mindepth 1 -maxdepth 1 \  				-type d \  				-printf "%f\n" -							) | commander -d -c -s)" +			) | commander -d -c -s)" -							[ -z "$world" ] && exit 1 +			[ -z "$world" ] && exit 1 -							if [ "$world" = 'none' ] -							then setsid multimc -l "$instance" > /dev/null 2>&1 -							else setsid multimc -l "$instance" -w "$world" > /dev/null 2>&1 -							fi +			if [ "$world" = 'none' ] +			then setsid multimc -l "$instance" > /dev/null 2>&1 +			else setsid multimc -l "$instance" -w "$world" > /dev/null 2>&1 +			fi  		fi  } @@ -47,24 +47,27 @@ minecraft()  steam()  {  	choice="$( -	cat <<-EOF | column -t -l 2 | commander -d -x -c | awk '{printf $1}' -	274190 broforce -	291550 brawlhalla -	1712840 tiny tina -	105600 terraria -	kill -EOF -	)" +		cat <<-EOF | +		274190 broforce +		291550 brawlhalla +		1712840 tiny tina +		105600 terraria +		kill +		EOF +		column -t -l 2 | commander -d -x -c | awk '{printf $1}')" +  	case "$choice" in  		kill) pkill steam ;; +		"") ;;  		*) setsid steam steam://rungameid/"$choice" ;;  	esac  	exit  }  eval "$( -	cat <<-EOF | commander -c -w 9 -y 2 +	cat <<-EOF | commander -c -w 9 -y 3  	minecraft  	steam +	lutris  	EOF  )"  | 
