You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
363 B

set -o errexit
set -o nounset
# set to whatever's given as argument, defaults to firefox
# find all visible browser windows
browser_windows="$(xdotool search --sync --all --onlyvisible --name ${BROWSER})"
# Send keystroke
for bw in $browser_windows; do
xdotool key --window "$bw" "$keystroke"