Skip to content

matthewfallshaw/chrome-window-management-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chrome Window Management Scripts

A collection of scripts for managing Google Chrome windows and tabs, launched via Quicksilver.

Dependencies

  • gchrome (bash-ninja) — the Create * scripts use gchrome -p <profile> to launch Chrome with a specific profile. Requires bash >= 4 and jq.
  • chrome-tabs-finder — the Raise * shell scripts use chrome-client (from this project) to find and focus tabs/windows by profile, title, and URL patterns.

Setup — Profile Names

These scripts reference profiles by short names like bellroy, miri, personal. Two separate systems need to agree on those names:

  1. Chrome profile display name — used by gchrome. Set via Chrome's UI (click profile icon > pencil/gear on each profile). gchrome reads these from Chrome's Local State file.
  2. Chrome Tabs Finder extension profile name — used by chrome-client. Set via the extension's options page (one per Chrome profile).

Both must be configured to match the names used in the scripts. If the Create * scripts fail with "Not a valid Chrome profile", fix (1). If the Raise * scripts can't find the right profile, fix (2).

Script categories

  • Raise * — Shell scripts that find and focus a tab or window via chrome-client JSON
  • Create * — Launch Chrome with a named profile via gchrome -p <profile>
  • * tab URLs to clipboard.scpt — AppleScripts that copy all tab URLs to clipboard (plain text or markdown)
  • Open in * from *.scpt — AppleScripts to transfer the current tab between Chrome and Safari

License

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Australia License.

About

Chrome window and tab management scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors