From c3b8bb7b56a68ea397fefd82b7af68704683cc2b Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Thu, 2 Apr 2020 22:06:18 +0200 Subject: [PATCH] Add news polybar module --- dotfiles/polybar.org | 55 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/dotfiles/polybar.org b/dotfiles/polybar.org index 3e8d9d5..95abf73 100644 --- a/dotfiles/polybar.org +++ b/dotfiles/polybar.org @@ -80,7 +80,7 @@ modules-left = i3 bspwm xwindow modules-center = - modules-right = pulseaudio xbacklight redshift wireguard nordvpn lockscreen dunst packages unread_mail temperature battery date + modules-right = pulseaudio xbacklight redshift wireguard nordvpn lockscreen dunst packages unread_news unread_mail temperature battery date wm-restack = i3 @@ -387,6 +387,59 @@ $TERMINAL -e "tmux new-session -A -s neomutt neomutt" & #+end_src +* Unread News +#+BEGIN_SRC conf + [module/unread_news] + type = custom/script + + format-underline = ${colors.bg} + click-left = ~/.config/polybar/scripts/news-open.sh + click-right = ~/.config/polybar/scripts/news-refresh.sh + format =