https://github.com/annahri/browser-dispatcher
Browser Dispatcher
https://github.com/annahri/browser-dispatcher
bash browser-dispatcher dispatcher
Last synced: about 2 months ago
JSON representation
Browser Dispatcher
- Host: GitHub
- URL: https://github.com/annahri/browser-dispatcher
- Owner: annahri
- License: gpl-3.0
- Created: 2024-12-20T09:58:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-26T03:30:08.000Z (over 1 year ago)
- Last Synced: 2025-03-27T16:50:34.906Z (over 1 year ago)
- Topics: bash, browser-dispatcher, dispatcher
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Browser Dispatcher
Browser Dispatcher is a shell script that allows users to open URLs in predefined browsers based on rules specified in a configuration file. It supports dynamic URL matching using YAML configuration.
## Features
- Match URLs to specific browsers using simple rules.
- Supports regex for flexible URL matching.
## Dependencies
- Bash
- [Kislyuk's yq](https://github.com/kislyuk/yq)
## Installation
1. Clone the repository
1. Put the script somewhere in your `PATH`, e.g. `~/.local/bin`
1. Put the `.desktop` file in `~/.local/share/applications`
1. Execute `xdg-mime default browser-dispatcher x-scheme-handler/http x-scheme-handler/https`
1. Copy the sample config file to `~/.config/browser-dispatcher/config.yaml`
1. Modify the config to your preference
1. Done
or just run `make install`
## Uninstallation
1. Delete the files
2. Set your default browser back
or just run `make uninstall`