Add Newsboat

This commit is contained in:
Nicolas Duhamel 2018-05-09 16:35:57 +02:00
parent 1ec5058cea
commit d83cd92728
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,21 @@
bookmark-cmd "~/.local/bin/wallabag_add.sh"
bookmark-autopilot yes
bookmark-interactive yes
browser "firefox %u"
bind-key j down
bind-key k up
bind-key l open
bind-key h quit articlelist
bind-key n toggle-article-read articlelist
bind-key N mark-feed-read articlelist
bind-key N mark-feed-read feedlist
bind-key s save articlelist
bind-key s save article
bind-key h quit article
bind-key r reload-all feedlist
bind-key b bookmark article
bind-key b bookmark articlelist

View File

@ -0,0 +1,4 @@
https://www.archlinux.org/feeds/news/
https://linuxfr.org/news.atom
https://framablog.org/feed/
http://erj.ersjournals.com/rss/current.xml

View File

@ -0,0 +1,20 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "error: no url provided in arg"
exit 1
fi
export `pass api/wallabag`
TOKEN=$(http -b POST https://bag.jombi.fr/oauth/v2/token \
grant_type=password \
client_id=$CLIENT_ID \
client_secret=$CLIENT_SECRET \
username=$USERNAME \
password=$PASSWORD | jq -r '.access_token')
http --print=HBhb POST https://bag.jombi.fr/api/entries.xml \
"Authorization:Bearer $TOKEN" \
url=$1 > /dev/null 2>&1