Set of rules to decide which browser to use to launch a url
Go to file
IamTheFij a546764845 WIP: Refactor to read from an hcl config file and expr rules
Need to write some documentation
2022-01-27 22:07:41 -08:00
.gitignore Working Python and Go versions 2020-11-26 08:03:23 -08:00
LICENSE Update LICENSE 2021-06-21 21:38:28 -07:00
Makefile WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00
README.md Update and refactor 2021-09-28 16:53:50 -07:00
browserRuler.desktop Working Python and Go versions 2020-11-26 08:03:23 -08:00
browser_ruler.py Linter updates to py version 2022-01-27 19:50:31 -08:00
browsers.go Update and refactor 2021-09-28 16:53:50 -07:00
config.go WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00
go.mod WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00
go.sum WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00
main.go WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00
sample-config.hcl WIP: Refactor to read from an hcl config file and expr rules 2022-01-27 22:07:41 -08:00

README.md

browser-ruler

A small program that allows writing rules to determine which browser to lauch based on the URL

This is tested on an Ubuntu system but should work on anything that supports xdg

Configuration

There is no configuration, persay. Intead, the code must be updated.

Edit rules.go and edit the list of BrowserRules in a similar fashion as the example and then run make install again.

You can use any rule functions found in main.go and any browsers found in browsers.go.

There is also a Python version as browser_ruler.py. To use that instead, you can edit that and then update the Makefile to make the BIN variable BIN = browser_ruler.py.

Installation

make install set-default