Browse Source

Added error handling to mail syncing notification on polybar

ansible
Micah Halter 2 years ago
parent
commit
8d2eed6d63
  1. 2
      offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf
  2. 1
      polybar/.config/polybar/config

2
offlineimap/.config/systemd/user/offlineimap-oneshot.service.d/override.conf

@ -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
polybar/.config/polybar/config

@ -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