| Using YT download script again, due to YT blocking mpv a lot. - dotfiles - Thes… | |
| git clone git://jay.scot/dotfiles | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit b0dd84a1940568cef9fab0d936762671c279f26b | |
| parent 8f6397d4c260a23093dbd79e238ffba52c0ff1c2 | |
| Author: Jay Scott <[email protected]> | |
| Date: Wed, 12 Nov 2025 22:48:44 +0000 | |
| Using YT download script again, due to YT blocking mpv a lot. | |
| Diffstat: | |
| M README | 2 +- | |
| M ashrc | 30 ++++++++++++------------------ | |
| M bin/link-handler | 5 ++--- | |
| R bin/old/yt-feedurl.sh -> bin/yt-fe… | 0 | |
| A bin/ytd | 107 +++++++++++++++++++++++++++++… | |
| M newsraft/feeds | 9 +++++++-- | |
| 6 files changed, 129 insertions(+), 24 deletions(-) | |
| --- | |
| diff --git a/README b/README | |
| @@ -17,7 +17,7 @@ my main desktop OS and are forever evolving. | |
| terminal : foot | |
| launcher : bemenu | |
| email : neomutt | |
| - browser : librewolf / lynx | |
| + browser : qutebrowser / lynx | |
| media : kew / mpv | |
| password mgmt : pass | |
| vpn : mullvad | |
| diff --git a/ashrc b/ashrc | |
| @@ -3,9 +3,6 @@ export XDG_CACHE_HOME="$HOME/.cache" | |
| export XDG_DATA_HOME="$HOME/.local/share" | |
| export XDG_STATE_HOME="$HOME/.local/state" | |
| -# cleanup ~/ | |
| -export PASSWORD_STORE_DIR="$XDG_CONFIG_HOME"/pass | |
| - | |
| # common exports | |
| GPG_TTY=$(tty) | |
| export GPG_TTY | |
| @@ -15,12 +12,20 @@ export PATH=$PATH:$HOME/bin | |
| # tools | |
| export OPENER=~/bin/link-handler | |
| -export BEMENU_OPTS="-l 10 -p '>>> ' --tb '#55a1ba' --tf '#ffffff' --hf '#44444… | |
| +export BEMENU_OPTS="-l 10 -p '>>> ' --tb '#000000' --tf '#ffffff' --hf '#44444… | |
| # lynx | |
| export LYNX_CFG=$HOME/.config/lynx/config | |
| export LYNX_LSS=$HOME/.config/lynx/theme.lss | |
| +# pass | |
| +export PASSWORD_STORE_DIR=$HOME/src/pass | |
| + | |
| +# ash | |
| +export LANG=en_US.UTF-8 | |
| +export LC_CTYPE="en_US.UTF-8" | |
| +export LC_ALL=en_US.UTF-8 | |
| + | |
| # safety first kids! | |
| alias cp='cp -i' | |
| alias mv='mv -i' | |
| @@ -45,21 +50,10 @@ alias mutt='neomutt' | |
| alias mpv="mpv --autofit=30% --really-quiet --no-terminal" | |
| # vpn | |
| -alias von='doas resolvconf -u && doas wg-quick up se-sto-wg-011' | |
| -alias voff='doas wg-quick down se-sto-wg-011' | |
| +alias von='doas resolvconf -u && doas wg-quick up fi-hel-wg-002' | |
| +alias voff='doas wg-quick down fi-hel-wg-002' | |
| alias vcheck='curl https://am.i.mullvad.net/connected' | |
| # media | |
| alias r='reddittui' | |
| -alias y='youtube-tui' | |
| - | |
| -# pass | |
| -export PASSWORD_STORE_DIR=$HOME/src/pass | |
| - | |
| -# ash | |
| -export LANG=en_US.UTF-8 | |
| -export LC_CTYPE="en_US.UTF-8" | |
| -export LC_ALL=en_US.UTF-8 | |
| -#export PS1="\[\e[00;34m\]▶▶▶ \W \[\e[0m\]" | |
| -#export PS1="\033[35m\w \033[36m➤ \033[0m" | |
| -export PS1="\033[90m\w \033[36m➤ \033[0m" | |
| +alias y='ytd' | |
| diff --git a/bin/link-handler b/bin/link-handler | |
| @@ -14,7 +14,7 @@ uri="$1" | |
| uri_lower="$(printf "%s" "$uri" | tr '[:upper:]' '[:lower:]')" | |
| case "$uri_lower" in | |
| - *.mkv | *.mp4 | *.webm | *youtube.com* | *odysee.com*) | |
| + *.mkv | *.mp4 | *.webm | *youtube.com* | *odysee.com* | *v.redd.it*) | |
| $player "$uri" & | |
| ;; | |
| *.gmi | gemini:*) | |
| @@ -30,8 +30,7 @@ case "$uri_lower" in | |
| $launcher "$pdf" "$uri" | |
| ;; | |
| *.jpg | *.jpe | *.jpeg | *.png | *.gif | *.webp) | |
| - echo "in" | |
| - #$launcher "$images" "$uri" | |
| + $launcher "$images" "$uri" | |
| wget -qO- $uri | $images - | |
| ;; | |
| *) | |
| diff --git a/bin/old/yt-feedurl.sh b/bin/yt-feedurl | |
| diff --git a/bin/ytd b/bin/ytd | |
| @@ -0,0 +1,107 @@ | |
| +#!/bin/sh | |
| + | |
| +# yt-dlp subscription fetcher | |
| +# jay <[email protected]> | |
| + | |
| +savepath="$HOME/media/youtube" | |
| +cachedir="$HOME/.cache/yt_dl" | |
| +yt="yt-dlp" | |
| +baseurl="https://www.youtube.com/playlist?list=" | |
| + | |
| +info() { | |
| + printf "\033[35mYT ➤\033[36m %s\033[0m\n" "$1" | |
| +} | |
| + | |
| +# action="$1" | |
| +# | |
| +# for channel in \ | |
| +# steve1989mreinfo UU2I6Et1JkidnnbWgJFiMeHA \ | |
| +# simon_wilson UUQCrKxBj5Id79syQEsY2Qxg \ | |
| +# c90adventures UUVqpNG1R72i21jh-nAxEk4A \ | |
| +# indigo_traveller UUXulruMI7BHj3kGyosNa0jA \ | |
| +# pppeter UUnHEz9DZ6EAof1-DaQGD_Xw \ | |
| +# abroad_in_japan UUHL9bfHTxCMi-7vfxQ-AYtg \ | |
| +# serpentza UUl7mAGnY4jh4Ps8rhhh8XZg \ | |
| +# the_lazy_peon UUE-f0sqi-H7kuLT0YiW9rcA \ | |
| +# zav_alsop UUcjx6m03fZwtRBFn1Cf7kKQ \ | |
| +# steve_marsh UUBhQuxcHU3aydk_zTXcbdTg \ | |
| +# planes_trains_everything UUcKw8Eg0FfRvhIAnC0cPGAA \ | |
| +# we_hate_the_cold UULmltEyJ0zBsKnL8bWSdn3A \ | |
| +# astonishing_glasgow UUIDIqg7LhjLFCyD2awY_38g \ | |
| +# drain_cleaning_aus UU7sGXeJOixPBgJ3r5R55JYg \ | |
| +# mike_okay UUpp3cHR9TWVyXqL1AVw4XkA \ | |
| +# rhykker UURl31PWkfF0a3j3hiDRaCGA \ | |
| +# brodie_robertson UUld68syR8Wi-GY_n4CaoJGA \ | |
| +# distrotube UUVls1GmFKf6WlTraIb_IaJg \ | |
| +# linux_cast UUylGUf9BvQooEFjgdNudoQg \ | |
| +# max_roving UUOxpcQ7KtZc7fd0jhnWS0Sg \ | |
| +# misfit_minds UUEpHkpv4_CgZIEadjjOv4jA \ | |
| +# better_offline UUsdzuPs5NKvdsBkQnP7Af8w \ | |
| +# simon_doherty UU2smcaU7852QtVvJz48dCRw \ | |
| +# phil_carr UULva3lkHR6B5OO-eiVaPnDg \ | |
| +# andrea_borman UUJsinEiaDqEn8a-GcADVEVA \ | |
| +# veronica_explains UUMiyV_Ib77XLpzHPQH_q0qQ; do | |
| +# $action "$channel" "$2" | |
| +# done | |
| +# } | |
| +# | |
| +main() { | |
| + mkdir -p "${cachedir}" | |
| + mkdir -p "${savepath}" | |
| + | |
| + action="$1" | |
| + "$action" "steve1989mreinfo" "UU2I6Et1JkidnnbWgJFiMeHA" | |
| + "$action" "simon_wilson" "UUQCrKxBj5Id79syQEsY2Qxg" | |
| + "$action" "c90adventures" "UUVqpNG1R72i21jh-nAxEk4A" | |
| + "$action" "indigo_traveller" "UUXulruMI7BHj3kGyosNa0jA" | |
| + "$action" "pppeter" "UUnHEz9DZ6EAof1-DaQGD_Xw" | |
| + "$action" "abroad_in_japan" "UUHL9bfHTxCMi-7vfxQ-AYtg" | |
| + "$action" "serpentza" "UUl7mAGnY4jh4Ps8rhhh8XZg" | |
| + "$action" "the_lazy_peon" "UUE-f0sqi-H7kuLT0YiW9rcA" | |
| + "$action" "zav_alsop" "UUcjx6m03fZwtRBFn1Cf7kKQ" | |
| + "$action" "steve_marsh" "UUBhQuxcHU3aydk_zTXcbdTg" | |
| + "$action" "planes_trains_everything" "UUcKw8Eg0FfRvhIAnC0cPGAA" | |
| + "$action" "we_hate_the_cold" "UULmltEyJ0zBsKnL8bWSdn3A" | |
| + "$action" "astonishing_glasgow" "UUIDIqg7LhjLFCyD2awY_38g" | |
| + "$action" "drain_cleaning_aus" "UU7sGXeJOixPBgJ3r5R55JYg" | |
| + "$action" "mike_okay" "UUpp3cHR9TWVyXqL1AVw4XkA" | |
| + "$action" "rhykker" "UURl31PWkfF0a3j3hiDRaCGA" | |
| + "$action" "brodie_robertson" "UUld68syR8Wi-GY_n4CaoJGA" | |
| + "$action" "distrotube" "UUVls1GmFKf6WlTraIb_IaJg" | |
| + "$action" "linux_cast" "UUylGUf9BvQooEFjgdNudoQg" | |
| + "$action" "max_roving" "UUOxpcQ7KtZc7fd0jhnWS0Sg" | |
| + "$action" "misfit_minds" "UUEpHkpv4_CgZIEadjjOv4jA" | |
| + "$action" "better_offline" "UUsdzuPs5NKvdsBkQnP7Af8w" | |
| + "$action" "simon_doherty" "UU2smcaU7852QtVvJz48dCRw" | |
| + "$action" "phil_carr" "UULva3lkHR6B5OO-eiVaPnDg" | |
| + "$action" "andrea_borman" "UUJsinEiaDqEn8a-GcADVEVA" | |
| + "$action" "veronica_explains" "UUMiyV_Ib77XLpzHPQH_q0qQ" | |
| +} | |
| + | |
| +get_video() { | |
| + info "Fetching latest from $1" | |
| + mkdir -p "${savepath}/${1}" | |
| + | |
| + "$yt" -q --restrict-filename \ | |
| + --download-archive "${cachedir}/${1}" \ | |
| + "${baseurl}${2}" \ | |
| + -o "${savepath}/${1}/%(playlist_index)s_%(title)s.%(ext)s" | |
| +} | |
| + | |
| +catchup() { | |
| + info "Catching up on $1" | |
| + "$yt" --flat-playlist --get-id \ | |
| + "${baseurl}${2}" | sed 's/.*/youtube &/' >"${cachedir}/${1}" | |
| +} | |
| + | |
| +case "$1" in | |
| +-m) | |
| + main catchup | |
| + ;; | |
| +-n) | |
| + catchup "$2" "$3" | |
| + ;; | |
| +*) | |
| + main get_video | |
| + ;; | |
| +esac | |
| diff --git a/newsraft/feeds b/newsraft/feeds | |
| @@ -24,19 +24,24 @@ https://garfnet.org.uk/cms/feed/ "Garfnet" | |
| https://bfloeser.de/index.xml "Benedikt" | |
| https://chromic.org/index.xml "Chromic" | |
| https://dandelion-utilitarian.com/feed.xml "Dandelion-Utilitarian" | |
| +https://wrongthink.link/posts/index.xml "Wrong Think" | |
| +https://stallman.org/rss/rss.xml "Stallman" | |
| +https://www.cheeyeo.xyz/feed.xml "Chee Yeo" | |
| +https://vkc.sh/feed/ "Veronica" | |
| +https://chriswere.wales/rss.xml "Chris Were" | |
| +https://writer13.neocities.org/rss.xml "Writer 13" | |
| @ GAMING | |
| https://www.gamingonlinux.com/article_rss.php "Gaming On Linux" | |
| @ ODYSEE | |
| https://odysee.com/$/rss/@AlphaNerd:8 "Mental Outlaw" | |
| -https://odysee.com/$/rss/@DistroTube:2 "DistroTube" | |
| https://odysee.com/$/rss/@techlore:3 "TechLore" | |
| https://odysee.com/$/rss/@NaomiBrockwell:4 "Naomi Brockwell" | |
| -https://odysee.com/$/rss/@BrodieRobertson:5 "Brodie Robertson" | |
| https://odysee.com/$/rss/@davidbombal:0 "David Bombal" | |
| https://odysee.com/$/rss/@thelinuxcast:4 "The Linux Cast" | |
| https://odysee.com/$/rss/@GreatScott:a "Great Scott" | |
| +https://odysee.com/$/rss/@rossmanngroup:a "Louis Rossmann" | |
| @ PODCASTS | |
| http://www.2600.com/oth-broadband.xml "2600" |