From 5f1d13b48102a20422e61d95ad8343862e1d1861 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 14 May 2020 13:24:16 +0200 Subject: [PATCH] Add 'news' bar module --- .local/bin/scripts/dbar | 1 + .local/bin/scripts/dwmbar/news | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 .local/bin/scripts/dwmbar/news 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"