Turn off speech with clipboard utilities and window title reader by creating the file ~/.agmsilent
This commit is contained in:
@ -9,6 +9,10 @@ done
|
||||
|
||||
# Read so long as the application is running
|
||||
while pgrep -u "$USER" ^$1 &> /dev/null ; do
|
||||
sleep 0.05
|
||||
if [[ -f ~/.agmsilent ]]; then
|
||||
continue
|
||||
fi
|
||||
wnd_focus=$(xdotool getwindowfocus)
|
||||
wnd_title=$(xprop -id $wnd_focus WM_NAME)
|
||||
lookfor='"(.*)"'
|
||||
@ -20,5 +24,6 @@ while pgrep -u "$USER" ^$1 &> /dev/null ; do
|
||||
old_title="$wnd_title"
|
||||
fi
|
||||
fi
|
||||
sleep 0.01
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user