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"
"Connectivity test"
"Kill emacs"
"Kill MS Teams"
"Sync doom emacs"
"Start videocall"
"Stop videocall"
@ -24,13 +25,14 @@ execute_command() {
execute_action() {
case "$1" in
"System resources usage") launch_kitty "htop" ;;
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
"Kill emacs") execute_command "pkill emacs" ;;
"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" ;;
"System resources usage") launch_kitty "htop" ;;
"Connectivity test") launch_kitty "ping -c 2 freebsd.org" ;;
"Kill emacs") execute_command "pkill emacs" ;;
"Kill MS Teams") execute_command "pkill teams" ;;
"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
}