install scripts. reorganization. soon to be deployable
This commit is contained in:
16
env/.local/bin/system/start-scripts/newsboat-fetch.sh
vendored
Executable file
16
env/.local/bin/system/start-scripts/newsboat-fetch.sh
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
newsboat_loop(){
|
||||
newsboat -x reload
|
||||
#newsboat -x print-unread | xargs -0 notify-send "newsboat feed"
|
||||
|
||||
unreads=$(newsboat -x print-unread)
|
||||
unreadnum=$(printf "$unreads" | sed 's/ .*//g')
|
||||
|
||||
if (( $unreadnum > 0 )); then
|
||||
notify-send "newsboat feed" "$unreads"
|
||||
fi
|
||||
notify-send "Vitamins!" "take them"
|
||||
sleep 2h
|
||||
newsboat_loop
|
||||
}
|
||||
newsboat_loop
|
||||
Reference in New Issue
Block a user