1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-03-22 01:49:21 +00:00

Bin: better hitolo and add twitch-dl

This commit is contained in:
Phantop 2021-01-09 22:46:08 -05:00
parent a34df85a19
commit 3c857c5d5d
3 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/fish
set HIFI ~/Music/HiFi
set LOFI ~/Music/LoFi
test -f /usr/share/man/man3/Parallel::ForkManager.3 || sudo eopkg it perl-parallel-forkmanager
if not test -d $LOFI
cd $HIFI
@ -8,5 +9,5 @@ if not test -d $LOFI
fd -e flac -x opusenc --bitrate 72 {} $LOFI/{.}.opus
end
set args -s $HIFI -d $LOFI -o opus -q 72 --clean
set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus
acxi $args $argv || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args $argv

6
.local/bin/twitch-dl Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
title=$(youtube-dlc -e $1 | sed 's|/|_|g')
link=$(youtube-dlc -g $1)
shift
ffmpeg -i $link -c copy $@ "$title.mkv"

4
.setup
View file

@ -13,7 +13,7 @@ term="advancecomp aria2 autojump fd fish fzf innoextract most ncdu p7zip ranger
sudo eopkg it $audio $dev $gui $media $rice $term
sudo eopkg rm --ignore-dependency tracker
pip3 install --user pipipxx readability-lxml
pip3 install --user adblock pipipxx readability-lxml sh
rm ~/.bashrc
cd ~/.dotfiles
@ -37,7 +37,7 @@ chsh -s /usr/bin/fish
git g gh:iv-org/invidious ~/.invid
git g gh:Phantop/solus-stuff ~/.solus
git g gh:Phantop/phantop.github.io ~/.site
git g gh:Phantop/haiku-icons ~/.local/share/icons/haiku
git g gh:Phantop/haiku-icons ~/.local/share/icons/Haiku
cd ~/.solus && git update-index --assume-unchanged packager
~/.solus/build