better config, browser script

This commit is contained in:
joelchrono12 2023-01-30 11:29:18 -06:00
parent 503f942f07
commit 5f52d46dd9
Signed by: chrono
GPG Key ID: E23D9C7FA57497A6
2 changed files with 11 additions and 11 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# save the image and open it with ucollage in fullscreen
if [ ! -z $(echo $1 | grep -E '.jpg$|.jpeg$|.png$') ]; then
gwenview $1
if [ ! -z $(echo $1 | grep -E '.jpg$|.jpeg$|.png$|.webp$') ]; then
ristretto $1
#curl $1 --output /tmp/img_newsboat && tmux new-window\; send-keys "gwenview /tmp/img_newsboat" Enter\; send-keys Enter
# open videos or youtube with mpv
elif [ ! -z $(echo $1 | grep -E 'youtube.com|.mpg$|.mpeg$|.mp4$|.avi$|.mov$') ]; then

View File

@ -48,6 +48,8 @@ show-read-feeds yes
text-width 80
reload-threads 8
show-title-bar yes
mark-as-read-on-hover yes
prepopulate-query-feeds yes
#confirm-exit yes
#cleanup-on-quit yes
#delete-read-articles-on-quit no
@ -58,7 +60,8 @@ player "mpv"
#download-retries 4
pager internal
article-sort-order date-asc
datetime-format "%y-%m-%d"
#datetime-format "%y-%m-%d"
datetime-format "%b %d %Y" # date example: Mar 01 2017
#html-renderer "w3m -t text/html"
save-path ~/downloads/news/
cache-file "~/.config/newsboat/.rss/cache.db"
@ -88,22 +91,19 @@ unbind-key s save article
color background magenta default
color listnormal blue default
color listnormal_unread green default
color listnormal white default
color listnormal_unread magenta default
color listfocus black magenta
color listfocus_unread black magenta
color info white default
#color article white default
color info green default
#color article green default
# Highlight Rules
highlight feedlist "https?://[^ ]+" cyan default
highlight articlelist "[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}" cyan default
highlight article "https?://[^ ]+" cyan default
highlight article "^(Feed|Title|Author|Link|Date):" blue default
ignore-article "*" "title =~ \"Sponsor\""
ignore-article "*" "title =~ \"Sponsored\""
highlight-article "tags =~ \"security\"" red default bold
feedlist-format "%11u %t"
#feedlist-format "%11u %t"
articlelist-format "%4i %f %D %?T?|%-24T| ?%t"
highlight all "^ *[0-9]*" cyan