From f78f4737d0555253845d7ac0f7393b669f153492 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:12:34 +0200 Subject: [PATCH] [qutebrowser] Add unread mail indicator --- polybar/config | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/polybar/config b/polybar/config index 6ac440e..a269c68 100644 --- a/polybar/config +++ b/polybar/config @@ -77,7 +77,7 @@ override-redirect = true modules-left = ewmh ewmh-arrow xwindow xwindow-arrow modules-center = -modules-right = backlight-arrow backlight pulseaudio-arrow pulseaudio battery-arrow battery date-arrow date tray-arrow +modules-right = backlight-arrow backlight unread-mail-arrow unread-mail pulseaudio-arrow pulseaudio battery-arrow battery date-arrow date tray-arrow tray-position = right tray-padding = 2 @@ -145,7 +145,7 @@ label = %date% %time% type = custom/text content = "%{T3}%{T-}" content-foreground = ${colors.blue} -content-background = ${colors.yellow} +content-background = ${colors.aqua} [module/pulseaudio] type = internal/pulseaudio @@ -218,6 +218,21 @@ content = "%{T3}%{T-}" content-foreground = ${colors.background} content-background = ${colors.gray} +[module/unread-mail] +type = custom/script +format-background = ${colors.aqua} +format-foreground = ${colors.background} +format-padding = 1 +format-prefix = "%{T2}  %{T-}" +exec = mu find flag:unread | wc -l +interval = 60 + +[module/unread-mail-arrow] +type = custom/text +content = "%{T3}%{T-}" +content-foreground = ${colors.aqua} +content-background = ${colors.yellow} + ; ######################################################### ; ########## Settings ########## ; #########################################################