Add mail sync script
This commit is contained in:
parent
dfa2219ce3
commit
3bac1dc0fe
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: mail-sync <account name>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mbsync "$1"
|
||||
notmuch new
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue