A simple, regex-based xdg-open replacement.
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
config Add syntax to always run in new terminal Mar 4, 2014
xdg-open

README.md

busking

dependencies

command-line usage

usage: xdg-open [file|protocol]

configuration

$HOME/.config/busking/config takes precedence over /etc/xdg/busking/config.

See included config for an example.

config options

The argument given to xdg-open is appended to cmd.

@regex = cmd

is matched against the argument given to xdg-open.

regex = cmd

is matched against the mimetype of the argument. Use mimetype -b file (provided by File::MimeInfo) to determine mimetype.

cmd?:terminal

signifies that cmd should be executed in either the current terminal or in a new terminal (i.e., terminal -e cmd).

cmd::terminal

signifies that cmd should always be executed in a new terminal.

#comment

is a comment. Inline comments are not valid.