diff options
Diffstat (limited to '')
-rw-r--r-- | .config/newsboat/config | 52 | ||||
-rwxr-xr-x | .local/bin/mpv-view.pl | 2 | ||||
-rwxr-xr-x | .local/bin/webview.sh | 10 |
3 files changed, 60 insertions, 4 deletions
diff --git a/.config/newsboat/config b/.config/newsboat/config new file mode 100644 index 0000000..3ebd65a --- /dev/null +++ b/.config/newsboat/config @@ -0,0 +1,52 @@ +#how-read-feeds no +auto-reload yes + +external-url-viewer "urlview" + +bind-key j down +bind-key k up +bind-key j next articlelist +bind-key k prev articlelist +bind-key J next-feed articlelist +bind-key K prev-feed articlelist +bind-key G end +bind-key g home +bind-key d pagedown +bind-key u pageup +bind-key l open +bind-key h quit +bind-key a toggle-article-read +bind-key n next-unread +bind-key N prev-unread +bind-key D pb-download +bind-key U show-urls +bind-key v show-urls +bind-key x pb-delete +bind-key ^t next-unread + +color listnormal cyan default +color listfocus black yellow standout +color listnormal_unread blue default bold +color listfocus_unread yellow default bold +color info yellow black bold +color article white default + +browser linkhandler +macro , open-in-browser +macro t set browser "youtube-dl --add-metadata -ic"; open-in-browser ; set browser linkhandler +macro a set browser "youtube-dl --add-metadata -xic -f bestaudio/best"; open-in-browser ; set browser linkhandler +macro v set browser "mpv-view.pl"; open-in-browser ; set browser linkhandler +macro w set browser "w3m"; open-in-browser ; set browser linkhandler + +highlight all "---.*---" yellow +highlight feedlist ".*(0/0))" black +highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold +highlight article "(^Link:.*|^Date:.*)" default default +highlight article "https?://[^ ]+" green default +highlight article "^(Title):.*$" blue default +highlight article "\\[[0-9][0-9]*\\]" magenta default bold +highlight article "\\[image\\ [0-9]+\\]" green default bold +highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold +highlight article ":.*\\(link\\)$" cyan default +highlight article ":.*\\(image\\)$" blue default +highlight article ":.*\\(embedded flash\\)$" magenta default diff --git a/.local/bin/mpv-view.pl b/.local/bin/mpv-view.pl index 3e17dd7..a66a75b 100755 --- a/.local/bin/mpv-view.pl +++ b/.local/bin/mpv-view.pl @@ -53,6 +53,7 @@ sub main } $size = get_size(); if ($size != 0) { + print 'mpv --ytdl-format=[height<=' . $size . '] ' . $ARGV[0] . "\n"; exec( 'mpv', '--ytdl-format=[height<=' . $size . ']', @@ -60,6 +61,7 @@ sub main ); } else { + print 'mpv ' . $ARGV[0] . "\n"; exec( 'mpv', $ARGV[0] diff --git a/.local/bin/webview.sh b/.local/bin/webview.sh index 6975853..62cec30 100755 --- a/.local/bin/webview.sh +++ b/.local/bin/webview.sh @@ -1,8 +1,8 @@ #!/usr/local/bin/dash ext="${1##*.}" -mpvFiles="mkv mp4 gif" -sxivFiles="png jpg jpeg jpe" +mpvFiles="mkv mp4 gif" +sxivFiles="png jpg jpeg jpe xpm" wgetFiles="flac mp3 mp3?source=feed opus pdf doc docx" cd ~/Downloads || exit @@ -12,7 +12,9 @@ if echo "$sxivFiles" | grep -w "$ext" > /dev/null; then elif echo "$mpvFiles" | grep -w "$ext" > /dev/null; then nohup mpv --loop --quiet "$1" > /dev/null & elif echo "$wgetFiles" | grep -w "$ext" > /dev/null; then - nohup st -e wget "$1" > /dev/null & + clear + fetch "$1" else - nohup qutebrowser "$1" > /dev/null & + clear + mpv-view.pl "$1" fi |