Add mail sync script

This commit is contained in:
coolneng 2022-03-23 13:03:34 +01:00
parent dfa2219ce3
commit 3bac1dc0fe
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,9 @@
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: mail-sync <account name>"
exit 1
fi
mbsync "$1"
notmuch new

View File

@ -30,7 +30,7 @@ execute_action() {
"Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
"Start videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall start" ;;
"Stop videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall stop" ;;
"Sync mail") execute_command "mbsync -a" && execute_command "notmuch new" ;;
"Sync mail") execute_command "/home/coolnengs/.local/share/scripts/mail-sync" ;;
esac
}