diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-24 03:54:06 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-24 03:54:06 -0300 |
commit | abd2b4e8990c054013057401cb67a985066cb41c (patch) | |
tree | fb81551bacae234f7728bcb4a32e863703eeac44 /walnewsboat.sh | |
parent | e97f4dd3e3f3f7f4f7b51e1bc5b9ebe1bdb8eecb (diff) |
added new
Diffstat (limited to 'walnewsboat.sh')
-rwxr-xr-x | walnewsboat.sh | 47 |
1 files changed, 47 insertions, 0 deletions
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 |