[rc/{notmuch,offlineimap}] migrate to new literate setup
[~bandali/configs] / polybar / .config / polybar / config
index 15799aa..1c99b8e 100644 (file)
@@ -12,8 +12,8 @@
 background = #222
 background-alt = #444
 ;foreground = ${xrdb:color7:#222}
-foreground = #dfdfdf
-foreground-alt = #555
+foreground = #eee
+foreground-alt = #888
 primary = #ffb52a
 secondary = #e60053
 alert = #bd2c40
@@ -25,7 +25,7 @@ height = 27
 ;offset-x = 1%
 ;offset-y = 1%
 radius = 3.0
-fixed-center = false
+fixed-center = true
 
 background = ${colors.background}
 foreground = ${colors.foreground}
@@ -39,19 +39,20 @@ border-color = #00000000
 padding-left = 0
 padding-right = 2
 
-module-margin-left = 1
+module-margin-left = 2
 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-left = bspwm xwindow
+modules-center = 
+modules-right = volume filesystem mail xkeyboard memory cpu temperature date powermenu
 
 tray-position = right
-;tray-padding = 2
+tray-padding = 1
 ;tray-transparent = true
 ;tray-background = #0063ff
 tray-maxsize = 18
@@ -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 = 60
+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
@@ -361,7 +371,7 @@ screenchange-reload = true
 ;compositing-border = over
 
 [global/wm]
-margin-top = 5
+margin-top = 0
 margin-bottom = 0
 
 ; vim:ft=dosini