Add 'news' bar module

This commit is contained in:
samedamci 2020-05-14 13:24:16 +02:00
parent e3342a85f8
commit 6c86b7ec1c
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
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"