Add sync email option to popup-window selection
This commit is contained in:
parent
0f6750c47f
commit
d8e75cdfe3
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue