mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-19 21:32:48 +00:00
bin: fix mc, gif -> jxl, chaotic; qute: bye 4qwant
This commit is contained in:
parent
500ff6e671
commit
dc52bbaa50
|
@ -12,7 +12,7 @@ starship init fish --print-full-init > ~/.config/fish/conf.d/starship.fish
|
|||
alias a 'alias -s'
|
||||
a acmus 'timeout (math 60 - (date +%M))m mpv --loop https://acmusicext.com/static/$argv/sunny/(date +%-I%P).ogg'
|
||||
a aliases 'v (env which aliases); command aliases'
|
||||
a all2jxl 'fd -e{png,jpg,ppm} -x cjxl -e 8 -d 0 {} {.}.jxl \; -x rm'
|
||||
a all2jxl 'fd -e{png,jpg,ppm,gif} -x cjxl -e 8 -d 0 {} {.}.jxl \; -x rm'
|
||||
a awall 'xwinwrap -fdt -fs -- mpv -wid WID ~/Pictures/Wall/Anim/$argv* --loop --no-osc'
|
||||
a base64d 'echo (echo $argv | base64 -d 2>/dev/null) | tee /dev/stderr 2>| clip;:'
|
||||
a clip 'xsel -ib'
|
||||
|
|
|
@ -4,9 +4,10 @@ if mkdir indexes; then
|
|||
curl --output-dir indexes -O "$(curl "$d" | jq -r .assetIndex.url)"
|
||||
cat indexes/*.json | jq -r '.objects[].hash|"https://resources.download.minecraft.net/\(.[:2])/\(.)"' | 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
|
||||
curl "$d" | jq .libraries[].downloads.artifact.url | grep -vE 'windows|macos' | xargs aria2c -d objects -Z
|
||||
curl "$d" | jq .downloads.client.url | xargs aria2c -d objects -Z
|
||||
d=$(curl "https://meta.fabricmc.net/v2/versions/loader/$(curl "$d" | jq -r .id)" | jq -r '.[0]|.launcherMeta.libraries.common[].name,(.loader,.intermediary).maven')
|
||||
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
|
||||
echo "$d" | sed -E ':b;s|\.(.*:)|/\1|;tb; s|(.*):(.*):(.*)|https://maven.fabricmc.net/\1/\2/\3/\2-\3.jar|' | 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.fabricmc.loader.impl.launch.knot.KnotClient --version . --assetsDir . --assetIndex "$(basename indexes/*.json .json)" --accessToken 0 "$@"
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
set -e
|
||||
alias s=sudo g=git
|
||||
|
||||
printf '[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' | s tee -a /etc/pacman.conf
|
||||
s pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
|
||||
s pacman-key --lsign-key 3056513887B78AEB
|
||||
s pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
||||
printf '[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist\n' | s tee -a /etc/pacman.conf
|
||||
s pacman -Syu
|
||||
xargs -o sudo pacman -S --needed < ~/.dotfiles/archpkgs
|
||||
yay -S pandoc-bin shellcheck-bin nvimpager
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
c.url.searchengines['!'] = 'farside.link/librey/search.php?q=!{}'
|
||||
c.url.searchengines['!'] = 'librey.fly.dev/search.php?q=!{}'
|
||||
c.url.searchengines['4'] = 'farside.link/4get/web?s={}'
|
||||
c.url.searchengines['4'] = '4get.fly.dev/web?scraper=qwant&s={}'
|
||||
c.url.searchengines['4'] = '4get.fly.dev/web?s={}'
|
||||
c.url.searchengines['a'] = 'annas-archive.org/search?q={}'
|
||||
c.url.searchengines['aw'] = 'wiki.archlinux.org/title/{}'
|
||||
c.url.searchengines['g'] = 'github.com/search?q={}'
|
||||
|
|
Loading…
Reference in a new issue