Git Product home page Git Product logo

chromer's Introduction

Description

Using a work laptop and keeping work and personal workflows is a problem. Chromer is a little helper to open URLs in Google Chrome browser in specific profile based on pattern matching the URL. Preliminary support for Firefox is added. Defaults to Safari browser when no browser is provided in profile.

This is a Mac OS specific solution but can easily be extended to any other platform. The Mac OS specifics are the round-about approach in getting the clicked URL on Mac.

You create a config file and specify the profile and patterns to match. Chromer takes care of the rest. Chromer can handler 'http', 'https' and 'file' URL schemes.

Getting it running

Build & Installation

  • Build Chromer (will provide a pre-built version soon) by checking out this repository and make (Needs Go, Xcode + MacOS SDK)
  • make install
  • Assuming everything goes fine, you should find '/Applications/Chromer.app' and a small icon in the Mac dock
  • Go to 'System Preferences', 'General' and 'Default Web Browser' drop down. Select 'Chromer' as the default browser.
    • Incase you do not see chromer in the list of browsers, use a helper app to set default browser from home-brew
      1. brew install defaultbrowser
      2. defaultbrowser chromer

TODO

  • Add an event listener to handler application quite event. My Objective-C skills are non-existent, will take time

Bugs

  • Chromer does not exit when you try to shut down the laptop and you get a popup message. You need to open the terminal and kill the 'chromer' process. Ex: pkill -9 chromer

Disclaimer

I have built and tested on a single machine, your mileage might vary. I
will be happy to help if required.

chromer's People

Contributors

mechanicker avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.