diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 3cb0ca4..e196c59 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -12,7 +12,6 @@ alias vim "nvim" alias docker-compose "podman-compose" alias sc "systemctl" alias jc "journalctl -eu" -alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'" # Additional paths set PATH $PATH $HOME/.emacs.d/bin diff --git a/scripts/.local/share/scripts/peerflix b/scripts/.local/share/scripts/peerflix new file mode 100755 index 0000000..5dc177c --- /dev/null +++ b/scripts/.local/share/scripts/peerflix @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +directory=/tmp/webtorrent +player=mpv + +webtorrent download "$1" -s -o "$directory" --"$player" +read -rp "File number: " nr +webtorrent download "$@" -s "$nr" -o "$directory" --"$player"