Browse Source

Added error handling to mail syncing notification on polybar

tags/v0.6.0
Micah Halter 1 year ago
parent
commit
8d2eed6d63
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf
  2. +1
    -0
      polybar/.config/polybar/config

+ 1
- 1
offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf View File

@@ -1,4 +1,4 @@
[Service]
Environment=DISPLAY=:0
ExecStartPre=polybar-msg hook mail 2
ExecStop=polybar-msg hook mail 1
ExecStopPost=/bin/sh -c 'if [ "$$EXIT_STATUS" = 0 ]; then polybar-msg hook mail 1; else polybar-msg hook mail 3; fi'

+ 1
- 0
polybar/.config/polybar/config View File

@@ -140,6 +140,7 @@ format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
hook-0 = /home/micah/.config/polybar/scripts/mail
hook-1 = echo -e '\u21bb'
hook-2 = echo -e '\ue0ae'
initial = 1

[module/backup]


Loading…
Cancel
Save