GithubHelp home page GithubHelp logo

oib's Introduction

OIB

Open In Browser

Description

This set of scripts lets you choose where to open your links, in a main web-browser, a secondary web-browser or a chromium app (or PWA).

Setup Script

curl https://raw.githubusercontent.com/pwall2222/oib/master/init.sh | bash

Files

  • app-list: A script containg all the ids and urls to take as arguments to launch a chromium based web-browser.
  • open-app: A script that opens the app in the chromium browser or returns 1.
  • url-handler: A script that decides where the url should be launched.

Setting up

  1. You need to get all 3 scripts on your path I suggest moving them to "/usr/local/bin/".

  2. You will need to set up the scripts accordingly.

    • In url-handler you will need to set MAIN_BROWSER, OTHER_BROWSER, CHROMIUM_BROWSER to the path of your browser executables.
    • You will need to create both a .domainrc and a .app-list in your home directory
    • In the domainrc you will need to put all the domains that you wanna either open in app or with the secondary browser, leaving a end break.
    • in the .app-list you will need to put the id and domain of the app you wanna acces. The number after app should be one greater than the one before (1,2,3,4,5) Example:
      declare -A app1=(
        [link]='open.spotify.com'
        [id]='pjibgclleladliembfgfagdaldikeohf'
      )
  3. You have to get the url-handler.desktop into the /usr/share/applications/ of your system.

  4. You will need to make url-handler the default handler for the mime types of http and https. In gnome you can do this by executing this command:

gio mime x-scheme-handler/https  url-handler.desktop
gio mime x-scheme-handler/http  url-handler.desktop

oib's People

Contributors

pwall2222 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.