Add Newsboat
This commit is contained in:
parent
1ec5058cea
commit
d83cd92728
21
user/newsboat/.config/newsboat/config
Normal file
21
user/newsboat/.config/newsboat/config
Normal 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
|
||||||
|
|
||||||
|
|
4
user/newsboat/.config/newsboat/urls
Normal file
4
user/newsboat/.config/newsboat/urls
Normal 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
|
20
user/newsboat/.local/bin/wallabag_add.sh
Executable file
20
user/newsboat/.local/bin/wallabag_add.sh
Executable 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user