2018-07-27 03:32:29 +00:00
|
|
|
#!syntax bash
|
2014-09-25 13:26:15 +00:00
|
|
|
# Configuration file for sx-open
|
2014-09-25 13:50:08 +00:00
|
|
|
# Note that as sx-open checks the regexes in order, they should be placed in order from specific to less so.
|
2018-08-01 16:59:02 +00:00
|
|
|
# Regexes imply '^$'
|
2014-09-25 13:26:15 +00:00
|
|
|
|
2018-07-27 17:03:36 +00:00
|
|
|
# Disable desktop notifications
|
|
|
|
#cfg notify false
|
|
|
|
|
|
|
|
# Enable verbose mode
|
|
|
|
#cfg verbose true
|
|
|
|
|
|
|
|
# Enable dry run mode (implies verbose)
|
|
|
|
#cfg dryrun true
|
|
|
|
|
2018-07-27 14:48:58 +00:00
|
|
|
# <cmd> macros:
|
|
|
|
# %target% — The first argument to this script.
|
|
|
|
# If not found, target is appended to the end of <cmd>
|
|
|
|
# example:
|
|
|
|
#uri 'browser %target% --profile=work' '^https://.+\.?workdomain.tld.*'
|
|
|
|
|
2018-07-27 13:49:08 +00:00
|
|
|
# scheme <cmd> <scheme>[ <scheme> ...]
|
|
|
|
#scheme browser http https
|
|
|
|
#scheme steam steam
|
2014-11-21 10:48:09 +00:00
|
|
|
|
2018-07-27 13:49:08 +00:00
|
|
|
# Or you can specify a regex for the entire uri:
|
|
|
|
# uri <cmd> <regex>[ <regex> ...]
|
2018-08-01 16:59:02 +00:00
|
|
|
#uri steam 'steam:'
|
|
|
|
#uri browser '(https?|ftp):'
|
2014-09-25 13:26:15 +00:00
|
|
|
|
2018-07-27 13:49:08 +00:00
|
|
|
# Mime types for filesystem targets:
|
|
|
|
# mime <cmd> <regex>[ <regex> ...]
|
2018-08-01 16:59:02 +00:00
|
|
|
#mime sxiv 'image/'
|
|
|
|
#mime libreoffice 'application/msword'
|