init
[dotfiles.git] / Scripts / reload-browser
1 #!/bin/bash
2
3 # https://unix.stackexchange.com/questions/37258/refresh-reload-active-browser-tab-from-command-line
4
5 BROWSER=$1
6 RELOAD_KEY="CTRL+R" 
7
8 CURWINDOW=$(xdotool getactivewindow)
9
10 xdotool search --name ${BROWSER} windowactivate --sync
11 xdotool search --name ${BROWSER} key --clearmodifiers ${RELOAD_KEY}