From abd2b4e8990c054013057401cb67a985066cb41c Mon Sep 17 00:00:00 2001 From: mono-b Date: Sat, 24 Dec 2022 03:54:06 -0300 Subject: added new --- walnewsboat.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 walnewsboat.sh (limited to 'walnewsboat.sh') diff --git a/walnewsboat.sh b/walnewsboat.sh new file mode 100755 index 0000000..9864d62 --- /dev/null +++ b/walnewsboat.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +walcols=/home/monoblanco/.cache/wal +[ -f $walcols/xterm-256 ] && rm -rf $walcols/xterm-256 + +while read line; do + /bin/zsh -c "hext256.py '$line' >> $walcols/xterm-256"; +done < $walcols/colors + +color1=$(sed -n 1p $walcols/xterm-256) +color2=$(sed -n 2p $walcols/xterm-256) +color3=$(sed -n 3p $walcols/xterm-256) +color4=$(sed -n 4p $walcols/xterm-256) +color5=$(sed -n 5p $walcols/xterm-256) +color6=$(sed -n 6p $walcols/xterm-256) + +cat << EOF > $walcols/newsboat +highlight feedlist "\\❮Unsorted\\❯" $color4 +highlight feedlist "\\❮Politics\/Philosophy\\❯" $color6 +highlight feedlist "\\❮MDE\\❯" $color4 +highlight feedlist "\\❮Schizophrenics Online\\❯" $color6 +highlight feedlist "\\❮Tech\/Linux\/Coding\\❯" $color6 +highlight feedlist "\\❮Shitpost\/Meme\\❯" $color6 +highlight feedlist "\\❮Cooking\\❯" $color4 +highlight feedlist "\\❮Text\/Blog\\❯" $color4 +highlight feedlist "\\❮Nitter\\❯" $color4 + +color listnormal color245 default +color listfocus color58 default +color listnormal_unread white default bold +color listfocus_unread color220 default bold +color info black black bold +color article default default + +highlight article "^Feed:.*" magenta default +highlight article "^Title:.*" yellow default bold +highlight article "^Author:.*" green default +highlight article "^Date:.*" color223 default +highlight article "^Link:.*" blue default +highlight article "^Flags:.*" color9 default +highlight article "\\[[0-9][0-9]*\\]" color66 default bold +highlight article "\\[image [0-9][0-9]*\\]" color109 default bold +highlight article "\\[embedded flash: [0-9][0-9]*\\]" color66 default bold + +highlight feedlist "[││]" color245 default bold +highlight feedlist "├─.*" color245 default bold +EOF -- cgit v1.2.1