feat: add mu/mu4e to polybar!

This commit is contained in:
Flinner 2022-03-05 20:28:57 +03:00
parent 9c01a67bdf
commit c1b4185368
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
2 changed files with 16 additions and 5 deletions

View File

@ -145,7 +145,7 @@ font-1 = "waffle:size=10;3"
#modules-right = color-switch sep network sep keyboard battery volume backlight sep sysmenu try
modules-left = launcher sep workspaces sep memory_bar cpu_bar sep temperature sep title
modules-center = mpd sep date sep thunderbird
modules-center = mpd sep date sep thunderbird mu4e
modules-right = color-switch sep network sep keyboard sep volume brightness sep filesystem_bar sep battery sep sysmenu tray
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

View File

@ -18,18 +18,29 @@ format-prefix = 
label-padding = 1
format-prefix-foreground = ${color.yellow}
[module/mail]
;[module/mail]
;type = custom/script
;exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\(\^A2=(\w+)\).*/\1/' | xargs --replace=__ printf '%d\n' '0x__'" \; | grep -o '^[0-9]' | paste -sd+ | bc
;interval = 5
;format = <label>
;label-padding = 1
;format-prefix = 
;format-prefix-foreground = ${color.yellow}
[module/mu4e]
type = custom/script
exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\(\^A2=(\w+)\).*/\1/' | xargs --replace=__ printf '%d\n' '0x__'" \; | grep -o '^[0-9]' | paste -sd+ | bc
exec = $(mu find flag:unread 2> /dev/null && wc -l) echo 0
interval = 5
format = <label>
label-padding = 1
format-prefix =
format-prefix-foreground = ${color.yellow}
format-prefix-foreground = ${color.blue}
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_