mirror of https://github.com/Flinner/dots.git
feat: add mu/mu4e to polybar!
This commit is contained in:
parent
9c01a67bdf
commit
c1b4185368
|
@ -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-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-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
|
modules-right = color-switch sep network sep keyboard sep volume brightness sep filesystem_bar sep battery sep sysmenu tray
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,29 @@ format-prefix =
|
||||||
label-padding = 1
|
label-padding = 1
|
||||||
format-prefix-foreground = ${color.yellow}
|
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
|
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
|
interval = 5
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
label-padding = 1
|
label-padding = 1
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-foreground = ${color.yellow}
|
format-prefix-foreground = ${color.blue}
|
||||||
|
|
||||||
|
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue