From 8dbbaf59853a8b874b180aa52e3757dc4375e863 Mon Sep 17 00:00:00 2001 From: Phantop Date: Wed, 15 Mar 2023 20:02:36 -0400 Subject: [PATCH] qute: farside librex; bin: minecraft fabric --- bin/aliases | 2 +- bin/minecraft | 7 +++++-- qutebrowser/config.py | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/aliases b/bin/aliases index 848087d..724f3ae 100755 --- a/bin/aliases +++ b/bin/aliases @@ -79,7 +79,7 @@ for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1) a $i "qutebrowser / \":open $i\"" end -for i in deemix diffoscope encodec git-sim lightnovel-crawler mandown mathicsscript nsz pdf2docx portablemc ratarmount scdl soundscrape spleeter +for i in deemix diffoscope encodec gallery-dl git-sim lightnovel-crawler mandown mathicsscript nsz pdf2docx portablemc ratarmount scdl soundscrape spleeter a $i "pipx run $i" end a mathics 'pipx run --spec mathics-django mathicsserver' diff --git a/bin/minecraft b/bin/minecraft index c629f3d..4309225 100755 --- a/bin/minecraft +++ b/bin/minecraft @@ -2,9 +2,12 @@ if mkdir objects; then d=$(curl https://piston-meta.mojang.com/mc/game/version_manifest.json | jq -r .versions[0].url) wget "$(curl "$d" | jq -r .assetIndex.url)" -P indexes - jq -r .objects[].hash < indexes/2.json | sed 's#^\(..\)#https://resources.download.minecraft.net/\1/\1#' | xargs aria2c -d objects -Z + jq -r .objects[].hash < indexes/3.json | sed 's#^\(..\)#https://resources.download.minecraft.net/\1/\1#' | xargs aria2c -d objects -Z ( echo "cd objects"; printf "mkdir %02x; mv %02x* %02x\n" $(seq 0 255 | sed 'p;p') ) | sh curl "$d" | jq .libraries[].downloads.artifact.url,.downloads.client.url | grep -vE 'windows|macos' | xargs aria2c -d objects -Z + d="https://meta.fabricmc.net/v2/versions/loader/$(curl "$d" | jq -r .id)" + d=$(curl "$d/$(curl "$d" | jq -r .[0].loader.version)/profile/json" | jq -r .libraries[].name) + echo "$d" | sed -r ':b;s|^([^:]*)*\.|\1\/|;tb;s|(.*):(.*):(.*)|https://maven.fabricmc.net/\1/\2/\3/\2-\3.jar|g' | xargs aria2c -d objects -Z fi java -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M\ - -Xms1G -Xmx8G -cp 'objects/*' net.minecraft.client.main.Main --version . --assetsDir . --assetIndex 2 --accessToken 0 "$@" + -Xms1G -Xmx8G -cp 'objects/*' net.fabricmc.loader.impl.launch.knot.KnotClient --version . --assetsDir . --assetIndex 3 --accessToken 0 "$@" diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 181abb6..7906454 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -6,10 +6,10 @@ c.confirm_quit = ['downloads'] c.downloads.location.directory = '~/Downloads' c.qt.workarounds.remove_service_workers = True -c.url.searchengines['l'] = 'lx.vern.cc/search.php?q={}' -c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}' +c.url.searchengines['l'] = 'farside.link/librex/search.php?q={}' c.url.searchengines['s'] = 'farside.link/searxng/search?q={}' c.url.searchengines['y'] = 'farside.link/invidious/search?q={}' +c.url.searchengines['m'] = 'morty.ononoki.org/?mortyurl={}' c.url.searchengines['a'] = 'annas-archive.org/search?q={}' c.url.searchengines['DEFAULT'] = c.url.searchengines['l'] c.url.start_pages = c.url.default_page = 'minifocs.fly.dev'