summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-04-27 17:36:37 -0400
committerAmin Bandali <amin@aminb.org>2017-04-27 17:36:37 -0400
commite0dcd28c0d4e24351e54ec34d7a25fe233ba6b68 (patch)
treed8972661ff8393eb148fe163265f05862df5f56a
parent3e303e20740e2b1ec0328fbfeca60e4b2244781c (diff)
downloadconfigs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.tar.gz
configs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.tar.xz
configs-e0dcd28c0d4e24351e54ec34d7a25fe233ba6b68.zip
Add mail module for polybar (uses notmuch)
also depends: pacaur -S ttf-font-awesome
Diffstat (limited to '')
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc2
-rw-r--r--polybar/.config/polybar/config12
-rwxr-xr-xpolybar/.local/bin/polybar-launch (renamed from polybar/.local/bin/launch-polybar)0
3 files changed, 12 insertions, 2 deletions
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc
index de905a7..e90c6f4 100755
--- a/bspwm/.config/bspwm/bspwmrc
+++ b/bspwm/.config/bspwm/bspwmrc
@@ -2,7 +2,7 @@
sxhkd &
sh ~/.fehbg &
-launch-polybar
+polybar-launch
connman-gtk &
pnmixer &
compton &
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config
index 15799aa..2e5855f 100644
--- a/polybar/.config/polybar/config
+++ b/polybar/.config/polybar/config
@@ -45,10 +45,11 @@ module-margin-right = 2
font-0 = Ubuntu:fontformat=truetype:antialias=true:pixelsize=9;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = Wuncon Siji:pixelsize=10;1
+font-3 = FontAwesome:pixelsize=10;1
modules-left = bspwm
modules-center = xwindow
-modules-right = volume filesystem xkeyboard memory cpu battery temperature date powermenu
+modules-right = volume filesystem mail xkeyboard memory cpu battery temperature date powermenu
tray-position = right
;tray-padding = 2
@@ -353,6 +354,15 @@ menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
+[module/mail]
+type = custom/script
+interval = 300
+format = <label>
+format-prefix = " "
+format-prefix-foreground = ${colors.foreground-alt}
+format-underline = #0a6cf5
+exec = notmuch count tag:unread
+
[settings]
screenchange-reload = true
;compositing-background = xor
diff --git a/polybar/.local/bin/launch-polybar b/polybar/.local/bin/polybar-launch
index 4fcd323..4fcd323 100755
--- a/polybar/.local/bin/launch-polybar
+++ b/polybar/.local/bin/polybar-launch