https://github.com/janniks/defaultbrowser
Swift script and Alfred workflow to change the default browser on macOS.
https://github.com/janniks/defaultbrowser
Last synced: about 1 year ago
JSON representation
Swift script and Alfred workflow to change the default browser on macOS.
- Host: GitHub
- URL: https://github.com/janniks/defaultbrowser
- Owner: janniks
- License: mit
- Created: 2018-04-30T22:11:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T19:17:09.000Z (about 9 years ago)
- Last Synced: 2025-02-14T09:51:11.889Z (over 1 year ago)
- Language: Swift
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# defaultbrowser 💻 🚀 🌍
Swift script and Alfred workflow to change the default browser on macOS.
## Swift
To run the Swift script:
1. 🚧 Make it executable: `chmod +x defaultbrowser.swift`
2. 🚀 Run it: `./defaultbrowser.swift `
3. 👍 Acknowledge the system popup asking you if you're sure what you're doing.
### Examples
Change the default browser to *Chrome*:
``` bash
./defaultbrowser.swift chrome
```
Change the default browser to *Safari*:
``` bash
./defaultbrowser.swift safari
```
You get the point.
## Alfred Workflow
Download the repository and open the `defaultbrowser.alfredworkflow` file. The keyword is `db` and expects the browser you want to set as default as an argument.
At the moment, the workflow is very basic. Nice features would be:
- Showing the matching available browsers while typing such as [this](https://github.com/ngreenstein/alfred-process-killer) workflow that shows matching processes while typing
- A cool icon
- Anything more you might like
## Contributing
🤓 Feel free to share ideas, criticism and open pull requests.