From d8e75cdfe38d5c4fa5eea0a0846415f09dfc39ef Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 13 Jun 2021 22:53:20 +0200 Subject: [PATCH] Add sync email option to popup-window selection --- scripts/.local/share/scripts/popup-window | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/.local/share/scripts/popup-window b/scripts/.local/share/scripts/popup-window index 2683a7d..de62110 100755 --- a/scripts/.local/share/scripts/popup-window +++ b/scripts/.local/share/scripts/popup-window @@ -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 }