1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

feat(newsboat): updated color scheme and setup podboat

This commit is contained in:
Ryan Kes 2020-12-06 10:34:03 +01:00
parent dd011e3170
commit 03ddbc57bf
3 changed files with 17 additions and 14 deletions

View File

@ -26,7 +26,7 @@ bind-key d pagedown
bind-key u pageup
bind-key l open
bind-key h quit
bind-key a toggle-article-read
bind-key m toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key D pb-download
@ -34,13 +34,7 @@ bind-key U show-urls
bind-key x pb-delete
bind-key ^t next-unread
color background default default
color listnormal default default
color listnormal_unread default default
color listfocus black yellow
color listfocus_unread black yellow
color info default black
color article default default
include /usr/share/doc/newsboat/contrib/colorschemes/solarized-dark
# highlights
highlight article "^(Title):.*$" blue default
@ -48,3 +42,8 @@ highlight article "https?://[^ ]+" red default
highlight article "\\[image\\ [0-9]+\\]" green default
browser linkhandler
# podboat
download-path "~/Downloads/podcasts/%h/%n"
max-downloads 5
player "linkhandler"

View File

@ -1,9 +1,12 @@
#!/usr/bin/env sh
# Exit if newsboat is already running
pgrep -f newsboat > /dev/null && exit
# Needed for notify-send to work
#!/bin/sh
export DISPLAY=":0.0"
ping -q -c 1 example.org >/dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo 🔃 >/tmp/newsupdate
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
/usr/bin/notify-send "📰 RSS feed update complete."

View File

@ -1,3 +1,4 @@
#!/usr/bin/env sh
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
notify-send.py -a Newsboat -i rssowl Rss "$1" &