Skip to content

arbal/mac-chrome

 
 

Repository files navigation

Installation

$ [sudo] pip install mac-chrome
$ [sudo] npm i -g mac-chrome

Config

$ export CHROME_TIMEOUT=10 # 5 by default

Examples

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

readme42.com

About

🍎 🔗 macOS Google Chrome.app scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • AppleScript 49.5%
  • Shell 44.3%
  • Python 6.2%