This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
2019-12-05 15:28:02 +01:00
|
|
|
#!/bin/sh
|
2019-12-02 19:57:45 +01:00
|
|
|
set -e
|
2020-04-17 06:54:35 +02:00
|
|
|
|
|
|
|
[ "$1" = "update" ] && mbsync -a
|
|
|
|
|
2019-12-26 05:23:47 +01:00
|
|
|
NEW=$(find ~/.mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/new -type f | wc -l)
|
2019-11-23 02:23:15 +01:00
|
|
|
|
2019-12-02 19:57:45 +01:00
|
|
|
echo $NEW | sed 's/^0$//'
|
2019-11-23 02:23:15 +01:00
|
|
|
|
2019-12-05 15:28:02 +01:00
|
|
|
if [ "$(ps -o comm= $PPID)" != "waybar" ] && pgrep waybar>/dev/null;then
|
|
|
|
pkill -SIGRTMIN+4 waybar
|
|
|
|
fi
|
|
|
|
|
2019-12-01 17:36:00 +01:00
|
|
|
# vim:ft=sh
|