Add 'news' bar module

This commit is contained in:
Wiktor Zykubek 2020-05-14 13:24:16 +02:00
parent 452db41b36
commit 5f1d13b481
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ $(./internet) $sym
$(./lamp) $sym
$(./music) $sym
$(./alsa) $sym
$(./news) $sym
$(./mails) $sym
$(./packages) $sym
$(./date) $sym

7
.local/bin/scripts/dwmbar/news Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
icon="$(cat "/tmp/newsupdate" 2>/dev/null)"
unread="$(cat "$HOME/.cache/news_unread" 2>/dev/null)"
echo " $unread$icon"