diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 19:17:54 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 19:17:54 +0100 |
commit | 0a8efa37e85ad3fc0b633d5e92198b09cd7fd555 (patch) | |
tree | 30001a3c2a2444f204b7f80e36fd93cc0b9c7ff8 /bin/extra/gml | |
parent | 3d6ee0856e4477378e8237f11f6f74eec9754488 (diff) | |
parent | 1c632029d7a02742b0cc740b6984ce139429b88b (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/gml')
-rwxr-xr-x | bin/extra/gml | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/bin/extra/gml b/bin/extra/gml deleted file mode 100755 index f8d6b7e..0000000 --- a/bin/extra/gml +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -minecraft() -{ - instance="$( - ( - printf "default\n" - find ~/.local/share/multimc/instances \ - -maxdepth 1 -mindepth 1 \ - -type d \ - -printf "%f\n" | - grep -v '_LAUNCHER_TEMP' - ) | - commander -d -c -x)" - - [ "$instance" ] || exit 1 - [ "$instance" = "default" ] && instance="1.20.1" - - ips="none 192.168.178.79 192.168.178.52 10.7.0.1 mc.hypixel.net" - ip="$(for ip in $ips - do printf "%s\n" "$ip" - done | commander -d -c)" - - if [ "$ip" != 'none' ] - then setsid multimc -l "$instance" -s "$ip" > /dev/null 2>&1 - else - - world="$( - ( - printf "none\n" - find "$HOME"/.local/share/multimc/instances/"$instance"/.minecraft/saves/ \ - -mindepth 1 -maxdepth 1 \ - -type d \ - -printf "%f\n" - ) | commander -d -c -s)" - - [ -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 - - fi -} - -steam() -{ - choice="$( - 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 3 - minecraft - steam - lutris - EOF -)" |