Created
April 9, 2021 08:27
-
-
Save nv1t/3632daa85ece50fe3a0e701db2e680fc to your computer and use it in GitHub Desktop.
it uses xdotool to activate the Teams window and mute/toggle the microphone. It puts the mouse back to the position.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mute() { | |
eval $(xdotool getmouselocation --shell) | |
pids=$(xdotool search --name "Microsoft Teams" | sort | uniq | head -n 1) | |
xdotool windowactivate $pids | |
xdotool key "ctrl+shift+m" | |
xdotool mousemove --sync $(( 0.1+$X )) $(( 0.1 + $Y )); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment