dotfiles

My configuration files.
Log | Files | Refs | README

commit c603673aaa3feb6f7c96759b5648e4d1b327f065
parent e654bae37974a7bf1599f727c922b281b3987c68
Author: Sven Möller <sven@svenmoeller.xyz>
Date:   Tue,  1 Mar 2022 20:15:15 +0100

Update scripts

Diffstat:
Mbin/.local/bin/bm | 6+++---
Mbin/.local/bin/lh | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -92,9 +92,9 @@ html () { to_html () { title="$(echo "$1" | head -c 1 | tr [:lower:] [:upper:])$(echo "$1" | tail -c +2)" echo "<h2>$title</h2>" - echo "<ul>" - sed -e 's_^\(\S*\)\s*$_\1 \1_' -e 's_\s_">_' -e 's_^_<li><a href="_' -e 's_$_</a>_' - echo "</ul>" + echo "<pre>" + sed -e 's_^\(\S*\)\s*$_\1 \1_' -e 's_\s_">_' -e 's_^_<a href="_' -e 's_$_</a>_' + echo "</pre>" } edit () { diff --git a/bin/.local/bin/lh b/bin/.local/bin/lh @@ -6,7 +6,7 @@ menu="fzf -i" open () { case $url in *.png|*.jpg|*.jpeg) curl $url | setsid -f imv -;; - *.mp3|*.ogg|*youtube.com/watch*|*invidious.snopyta.org/watch*) + *.mp3|*.ogg|*/watch*|*/w/*) mpv --fs --force-window $url > /dev/null 2>&1 & ;; *) openbrowser $url ;; esac @@ -16,7 +16,7 @@ openbrowser () { if [ $gui = true ] ; then qutebrowser $1 > /dev/null 2>&1 & else - python -m readability.readability -u $1 | w3m -T text/html + w3m $1 fi }