~strahinja/dotfiles

e9b5dd340a9ab8d2a10e35bf9b45e01042ccdb1f — Страхиња Радић 2 months ago 183952d
bin/pagecheck: Fix wrapping; snownews/*: Updated

Signed-off-by: Страхиња Радић <contact@strahinja.org>
3 files changed, 8 insertions(+), 12 deletions(-)

M bin/pagecheck
M snownews/browser
M snownews/urls
M bin/pagecheck => bin/pagecheck +2 -2
@@ 55,8 55,8 @@ curl -s $URL | grep $REGEXP | sed -e's/<p>/\\n\\n/g' | sed -ze's/\n/\\n/g' | \
if [ $(( $(wc -c $TMPFILE | cut -d' ' -f1) )) -gt 0 ]; then
	if ! grep -F -f $TMPFILE $CACHEFILE &>/dev/null; then
		echo "\\nURL: $URL\\n" >> $TMPFILE
		ufold -w $WRAPWIDTH $TMPFILE > $NEWFILE
		#cat $TMPFILE | sed -e's/\\n/\n/g' | \
		cat $TMPFILE | sed -e's/\\n/\n/g' | \
			ufold -w $WRAPWIDTH > $NEWFILE
		#	sed "s/.\\{$WRAPWIDTH\\}/&\\n/g" > $NEWFILE
		print_new | neomutt -s "[$PROG] New update" $EMAIL
		BODY=$(print_new)

M snownews/browser => snownews/browser +1 -2
@@ 1,2 1,1 @@
surf %s

surf %s
\ No newline at end of file

M snownews/urls => snownews/urls +5 -8
@@ 4,13 4,10 @@
	<title>snownews subscriptions</title>
    </head>
    <body>
	<outline xmlUrl="https://suckless.org/atom.xml"/>
	<outline xmlUrl="https://strahinja.org/blog/rss.xml"/>
	<outline xmlUrl="exec:curl https://css-tricks.com/feed/"/>
	<outline xmlUrl="exec:curl https://news.vuejs.org/feed.xml"/>
	<outline xmlUrl="exec:curl https://vuejsdevelopers.com/feed.xml"/>
	<outline text="Ain't It Cool News CoolNews Feed" xmlUrl="exec:curl https://www.aintitcool.com/node/feed/coolnews/"/>
	<outline xmlUrl="exec:curl https://artixlinux.org/feed.php"/>
	<outline text="The Latest from Luke" xmlUrl="exec:curl https://lukesmith.xyz/rss.xml"/>
	<outline text="Ain't It Cool News CoolNews Feed" xmlUrl="exec:curl https://www.aintitcool.com/node/feed/coolnews/" category="Филмови"/>
	<outline text="The Latest from Luke" xmlUrl="exec:curl https://lukesmith.xyz/rss.xml" category="ГНУ са Линуксом,Лични блогови"/>
	<outline text="//strahinja.org" xmlUrl="https://strahinja.org/blog/rss.xml" category="Лични блогови"/>
	<outline text="suckless.org news" xmlUrl="https://suckless.org/atom.xml"/>
	<outline text="Artix Linux news" xmlUrl="https://artixlinux.org/feed.php"/>
    </body>
</opml>