Add kill MS teams option to recurrent-actions

This commit is contained in:
coolneng 2021-10-26 17:35:44 +02:00
parent a3d56cd2b9
commit 82437c662d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 9 additions and 7 deletions

View File

@ -5,6 +5,7 @@ select_action() {
"System resources usage" "System resources usage"
"Connectivity test" "Connectivity test"
"Kill emacs" "Kill emacs"
"Kill MS Teams"
"Sync doom emacs" "Sync doom emacs"
"Start videocall" "Start videocall"
"Stop videocall" "Stop videocall"
@ -24,13 +25,14 @@ execute_command() {
execute_action() { execute_action() {
case "$1" in case "$1" in
"System resources usage") launch_kitty "htop" ;; "System resources usage") launch_kitty "htop" ;;
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;; "Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
"Kill emacs") execute_command "pkill emacs" ;; "Kill emacs") execute_command "pkill emacs" ;;
"Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;; "Kill MS Teams") execute_command "pkill teams" ;;
"Start videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall start" ;; "Sync doom emacs") execute_command "$HOME/.emacs.d/bin/doom sync" ;;
"Stop videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall stop" ;; "Start videocall") execute_command "$script_folder/pulseaudio-mic-mute" && execute_command "$script_folder/videocall start" ;;
"Sync mail") execute_command "mbsync -a" && execute_command "notmuch new" ;; "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 esac
} }