Last active
August 29, 2015 14:17
-
-
Save andykais/e3e9f9040e3d2a1ff227 to your computer and use it in GitHub Desktop.
chrome version of my run on change to auto update for web pages
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
#!/bin/bash | |
# the current version of chrome in linux requires focus on the window for xdotool | |
#this is a workaround to focus back to the editor after reloading the page | |
editor=`xdotool getwindowfocus` | |
xdotool search --onlyvisible --class "Chrome" windowfocus key 'ctrl+r' | |
xdotool windowfocus $editor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment