Add sync email option to popup-window selection

This commit is contained in:
coolneng 2021-06-13 22:53:20 +02:00
parent 0f6750c47f
commit d8e75cdfe3
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ select_action() {
"Sync doom emacs"
"Start videocall"
"Stop videocall"
"Sync mail"
)
action=$(printf '%s\n' "${action_content[@]}" | rofi -no-auto-select -i "$@" -dmenu -p "Choose an action")
execute_action "$action"
@ -29,6 +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" ;;
esac
}