Skip to content

Swift script and Alfred workflow to change the default browser on macOS.

License

Notifications You must be signed in to change notification settings

janniks/defaultbrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <browser>
  3. 👍 Acknowledge the system popup asking you if you're sure what you're doing.

Examples

Change the default browser to Chrome:

./defaultbrowser.swift chrome

Change the default browser to Safari:

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

About

Swift script and Alfred workflow to change the default browser on macOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages