dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit aca7dd2cd60a6f1d42eacacd561b141f94625a09
parent c2ea6a61e0994698e93b71f5ad5c049d7c4fb797
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Thu,  6 Jan 2022 18:07:38 -0500

Added newsboat script for polybar

Diffstat:
Alinux/.config/polybar/scripts/newsboat.sh | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/linux/.config/polybar/scripts/newsboat.sh b/linux/.config/polybar/scripts/newsboat.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +while [ $(pgrep '^newsboat$') ] +do + sleep 1s +done + +if [[ ( -n $(find ~/.newsboat/cache.db -mmin +5) ) || ( ~/.newsboat/cache.db -ot ~/.newsboat/urls ) ]] +then + newsboat -x reload > /dev/null +fi + +newsboat -x print-unread | awk '{ print " " $1 }'