1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-21 14:22:45 +00:00

fish: more acxi threads, stricter ytfluxfix, appmk in path

This commit is contained in:
Phantop 2024-07-05 15:08:45 -04:00
parent efbc3e874d
commit bc1bc17c85
3 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
fish_add_path -g ~/{.dotfiles,.local{/appdwarf,},Games}/bin /usr/lib64/ccache/bin
fish_add_path -g ~/.local/appdwarf/apps
export EDITOR=nvim MANPAGER='nvim +Man!' USE_CCACHE=1 PAGER=most
export QT_QPA_PLATFORMTHEME=qt5ct GTK_THEME=Dracula
export NNN_PLUG='f:fzcd;i:imgur;j:autojump;m:nmount;s:imgview'

View file

@ -2,7 +2,7 @@ function hitolo
mkdir /tmp/foo
ifuse --documents com.foobar2000.mobile /tmp/foo || return 1
# https://github.com/smxi/acxi/raw/stable/acxi
acxi -s ~/Music/HiFi -d /tmp/foo -o opus -q 128 --clean sync -F 16 -c mp3,m4a,opus,ogg
acxi -s ~/Music/HiFi -d /tmp/foo -o opus -q 128 --clean sync -F 64 -c mp3,m4a,opus,ogg
fusermount -u /tmp/foo
rmdir /tmp/foo
end

View file

@ -1,5 +1,5 @@
function ytfluxfix
set instances (curl https://api.invidious.io/instances.json | jq -r '.[] | select(.[1].type == "https" and .[1].monitor.uptime >= 99) [0]')
set instances (curl https://api.invidious.io/instances.json | jq -r '.[] | select(.[1].type == "https" and .[1].monitor.uptime == 100) [0]')
for i in (eval curl (cat ~/.config/miniflux)/categories/3/feeds | jq -rc '.[] | select(.parsing_error_count!=0)' | head -n15)
set url (trurl -s host=(random choice $instances) (echo $i | jq -r .feed_url))
set id (echo $i | jq -r .id)