handy

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

piper.cirrus.newsboat.config.2017 (5625B)


      1 e cirrus, http://ix.io/Bzb
      2 # ░░░░░░ ░░░░░░  ░░   ░░  ░░░░░░ ░░░░░░  ░░   ░░░░░░░░ ░░░░░░  ░░   ░░  ░░░░░ ░░░░░░
      3 # ███╗   ██╗███████╗██╗    ██╗███████╗██████╗ ███████╗██╗   ██╗████████╗███████╗██████╗ 
      4 # ████╗  ██║██╔════╝██║    ██║██╔════╝██╔══██╗██╔════╝██║   ██║╚══██╔══╝██╔════╝██╔══██╗
      5 # ██╔██╗ ██║█████╗  ██║ █╗ ██║███████╗██████╔╝█████╗  ██║   ██║   ██║   █████╗  ██████╔╝
      6 # ██║╚██╗██║██╔══╝  ██║███╗██║╚════██║██╔══██╗██╔══╝  ██║   ██║   ██║   ██╔══╝  ██╔══██╗
      7 # ██║ ╚████║███████╗╚███╔███╔╝███████║██████╔╝███████╗╚██████╔╝   ██║   ███████╗██║  ██║
      8 # ╚═╝  ╚═══╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚══════╝ ╚═════╝    ╚═╝   ╚══════╝╚═╝  ╚═╝
      9 # ░░░░░░ ░░░░░░  ░░   ░░  ░░░░░░ ░░░░░░  ░░   ░░░░░░░░ ░░░░░░  ░░   ░░  ░░░░░ ░░░░░░
     10 #  ▓▓▓▓▓▓▓▓▓▓
     11 # ░▓ author ▓ cirrus <cirrus@archlinux.info>
     12 # ░▓ code   ▓ https://gist.github.com/cirrusUK
     13 # ░▓ mirror ▓ http://cirrus.turtil.net
     14 # ░▓▓▓▓▓▓▓▓▓▓ #░░░░░░░░░░                                                                            
     15 article-sort-order  desc
     16 auto-reload         no
     17 #browser             firefox %u
     18 browser             ~/.config/piper
     19 confirm-exit        no
     20 max-items           100
     21 notify-program      "/usr/bin/notify-send -h string:bgcolor:#000000 -h string:fgcolor:#46db18 -i ~/.icons/48arch.png 'Newsbeuter' -h string:fgcolor:#db18c9"
     22 reload-threads      3
     23 reload-time         0
     24 save-path           ~/.newsbeuter/saved_articles
     25 show-read-articles  no
     26 show-read-feeds     no
     27 color listfocus   red default blink
     28 color info          red default bold
     29 #highlight all "Linux" yellow black blink
     30 #download-full-page yes 
     31 notify-always yes 
     32 #mark-as-read-on-hover yes 
     33 always-display-description true 
     34 bookmark-cmd /home/cirrus/scripts/newsbeuter_bookmarks_surfraw.sh
     35 #
     36 #-------- macros {{{
     37 #------------------------------------------------------
     38 # Note: macro prefix key ( default: , )
     39 
     40 # open in cli web browser
     41 # macro o set browser "$BROWSERCLI %u"; open-in-browser ; set browser "$BROWSER %u"
     42 macro o set browser "tmux split-window && tmux send-keys '$BROWSERCLI %u && tmux kill-pane\n'"; open-in-browser ; set browser "$BROWSER %u"
     43 
     44 # read reddit comments with rtv (reddit terminal viewer)
     45 # macro r set browser "rtv -l %u"; open-in-browser ; set browser "$BROWSER %u"
     46 macro r set browser "tmux split-window && tmux send-keys 'rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser "$BROWSER %u"
     47 
     48 # add video or audio to play queue using mpv (requires: task-spooler, mpv, youtube-dl)
     49 macro p set browser "tsp mpv --ontop --no-border --force-window --autofit=500x280 --geometry=-15-10 %u"; open-in-browser ; set browser "$BROWSER %u"
     50 
     51 # copy url to clipboard "yank"
     52 macro y set browser "echo -n %u | xclip -selection clipboard"; open-in-browser ; set browser "$BROWSER %u"
     53 macro w set browser "w3m %u"; open-in-browser ; set browser "$BROWSERCLI %u"
     54 
     55 # read saved files
     56 # ranger: https://www.youtube.com/watch?v=qooLR8NmYKs
     57 macro s set browser "tmux split-window && tmux send-keys 'ranger ~/.newsbeuter/saved_articles && tmux kill-pane\n'" ; open-in-browser ; set browser "$BROWSER %u"
     58 
     59 # }}}
     60 #
     61 
     62 # formatting and colorization ------------------------------------------
     63  
     64 articlelist-format "%4i %f %D %?T?|%-17T| ?%t"
     65  
     66 highlight feedlist "^ *[0-9]+ *N " color156 default
     67 highlight articlelist "^ *[0-9]+ *N " color156 default
     68  
     69 highlight article "^(Feed|Title|Author|Link|Date|Linux):.*" color75 default
     70 highlight article "^Podcast Download URL:.*" color71 default
     71 highlight article "^Links:" white color240 underline
     72 highlight article "\\[[0-9][0-9]*\\]" color72 default bold
     73 highlight article "\\[image [0-9][0-9]*\\]" color72 default bold
     74 highlight article "\\[embedded flash: [0-9][0-9]*\\]" color72 default bold
     75 highlight article ":.*\\(link\\)$" color74 default
     76 highlight article ":.*\\(image\\)$" color74 default
     77 highlight article ":.*\\(embedded flash\\)$" color74 default
     78  
     79 color listnormal color246 color234
     80 color listnormal_unread color244 color234 bold
     81 color listfocus color166 color235
     82 color info color38 color235
     83 color background color244 color234
     84 color article color244 color234 
     85 
     86 feedlist-format "%-65t %?d?- %-65d&? %> %u"
     87 articlelist-format "%-4i %f %t"
     88 feedlist-title-format "%N %V %> %u feeds with new articles"
     89 articlelist-title-format "%T"
     90 html-renderer "w3m -dump -T text/HTML -cols 72"
     91 highlight article "^(Feed|Title|Author|Link|Date):.*" yellow default bold
     92 notify-format  "%I %d %n %f new articles (%n unread articles, %f unread feeds)"