command
module
Version:
v0.0.0-...-b2150b7
Opens a new window with list of versions in this module.
Published: Apr 1, 2023
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Picky
Note
This repository has moved to sourcehut.
This program lets you open URIs using different browsers (or profiles) following a set of rules.
Table of Contents
Example config
Picky is driven by a configuration file located at $HOME/.config/picky/config
.
debug: true
default: &default
command: chromium-browser
args: ["--profile-directory=Default Profile"]
rules:
- <<: *default
args: First Profile
uris:
- hotmail.com
- gmail.com
- <<: *default
args: Second Profile
uris:
- (cnn|nyt).com
Installation
$ go get -u github.com/jcmuller/picky
$ mkdir -p ~/.local/share/applications; cp picky.desktop ~/.local/share/applications
$ sudo update-alternatives --install /usr/bin/picky x-www-browser /usr/local/bin/picky 100
$ sudo update-alternatives --install /usr/bin/picky-gnome gnome-www-browser /usr/local/bin/picky 100
$ xdg-settings set default-web-browser picky.desktop
Usage
$ picky SOME_URI
Documentation
¶
Package main is the entrypoint
Source Files
¶
Directories
¶
Package chooser chooses what browser to use depending on a rule and URI
|
Package chooser chooses what browser to use depending on a rule and URI |
Package config has configuration responsibilities
|
Package config has configuration responsibilities |
Package rule wraps heuristics to choose browsers
|
Package rule wraps heuristics to choose browsers |
Click to show internal directories.
Click to hide internal directories.