Add 'news' bar module
This commit is contained in:
parent
452db41b36
commit
5f1d13b481
@ -16,6 +16,7 @@ $(./internet) $sym
|
|||||||
$(./lamp) $sym
|
$(./lamp) $sym
|
||||||
$(./music) $sym
|
$(./music) $sym
|
||||||
$(./alsa) $sym
|
$(./alsa) $sym
|
||||||
|
$(./news) $sym
|
||||||
$(./mails) $sym
|
$(./mails) $sym
|
||||||
$(./packages) $sym
|
$(./packages) $sym
|
||||||
$(./date) $sym
|
$(./date) $sym
|
||||||
|
7
.local/bin/scripts/dwmbar/news
Executable file
7
.local/bin/scripts/dwmbar/news
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user