$ [sudo] pip install mac-chrome
$ [sudo] npm i -g mac-chrome
$ export CHROME_TIMEOUT=10 # 5 by default
url(s)
$ chrome urls
https://github.com/
https://google.com/
$ chrome url
https://github.com/
open/refresh
$ chrome open "https://github.com/" "https://google.com/"
$ chrome refresh "https://github.com/"
fullscreen
$ chrome fullscreen-enter
$ chrome fullscreen-detect
1
$ chrome fullscreen-exit
frontmost (1
or 0
)
$ chrome frontmost
0
Google Chrome.app
process
$ chrome pid
42
$ chrome isready 5 # timeout 5 seconds
1
$ chrome kill