diff --git a/.local/bin/scripts/dbar b/.local/bin/scripts/dbar index e687e18..5798064 100755 --- a/.local/bin/scripts/dbar +++ b/.local/bin/scripts/dbar @@ -16,6 +16,7 @@ $(./internet) $sym $(./lamp) $sym $(./music) $sym $(./alsa) $sym +$(./news) $sym $(./mails) $sym $(./packages) $sym $(./date) $sym diff --git a/.local/bin/scripts/dwmbar/news b/.local/bin/scripts/dwmbar/news new file mode 100755 index 0000000..37acf0e --- /dev/null +++ b/.local/bin/scripts/dwmbar/news @@ -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"