#profile #browser #command-arguments #chrome #links #programs #depending

app choosy

Choosy program that launches other programs depending on its arguments

3 releases

0.1.2 Sep 14, 2024
0.1.1 Sep 14, 2024
0.1.0 Sep 14, 2024

#318 in Parser implementations

Download history 336/week @ 2024-09-12 51/week @ 2024-09-19

387 downloads per month

MIT license

5KB
51 lines

choosy

Choosy program that launches other programs depending on its arguments. I wrote it because I use multiple Chrome browser profiles and I want certain links to always open in certain profiles.

Installing

cargo install choosy

Make sure to set it as your default browser.

Configuration

Choosy is configured in ~/.config/choosy.toml.

Choosy maps regexes to commands, along with additional arguments to be passed to the command. The longest match is used to select a program. A default program is required.

Example: always open youtube links with google-chrome --profile-email=bar@example.org

default = { command = 'google-chrome', args = [] }

[overrides]
'^(https?://)?(www\.)?youtube\.com' = { command = 'google-chrome', args = ['--profile-email=bar@example.org'] }

Dependencies

~3–14MB
~122K SLoC