blob: 9864d62b90925533fb23c259c80201c5291635eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
|