Added remote refresh
This commit is contained in:
parent
259dd18f41
commit
5673cad5f7
17
refresh.sh
Executable file
17
refresh.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
keystroke="CTRL+F5"
|
||||
|
||||
# set to whatever's given as argument, defaults to firefox
|
||||
BROWSER="${1:-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"
|
||||
done
|
Loading…
Reference in a new issue