-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyaxo.1
More file actions
98 lines (74 loc) · 1.67 KB
/
Copy pathyaxo.1
File metadata and controls
98 lines (74 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.TH YAXO 1 "2025" "yaxo manual"
.SH NAME
yaxo \- deterministic, config-driven replacement for xdg-open
.SH SYNOPSIS
.B yaxo
.I file | url
.SH DESCRIPTION
\fByaxo\fR is a modern, configurable XDG opener. It resolves how to open
files and URLs using a predictable, strict priority system:
.TP
1. User config rules (~/.config/yaxo.rc)
.TP
2. Desktop file MIME/URL handlers
.TP
3. default= command
.TP
4. launcher= fallback
.TP
5. xdg-open or gio fallback (URLs only)
yaxo never attempts to launch browsers for regular files, and never pauses
for interactive input like xdg-open.
.SH CONFIGURATION
The configuration file is located at:
.PP
\fI~/.config/yaxo.rc\fR
Entries follow the format:
.PP
\fBkey = command with {target}\fR
.SH RULE KEYS
.TP
\fBmime:<full>\fR
Matches full MIME type.
.TP
\fBmajor:<major>\fR
Matches MIME major group (e.g. text, image).
.TP
\fBminor:<minor>\fR
Matches MIME minor type (e.g. javascript, png).
.TP
\fBext:<ext>\fR
Matches file extension.
.TP
\fBtype:<type>\fR
Matches file, directory, symlink, executable.
.TP
\fBurl:<pattern>\fR
Wildcard matching for URLs.
.TP
\fBlauncher=<cmd>\fR
Last local fallback.
.TP
\fBterminal=<cmd>\fR
Command used for desktop entries with Terminal=true.
.TP
\fBdefault=<cmd>\fR
Fallback opener before launcher.
.SH DESKTOP FILE HANDLING
Desktop entries are scanned from standard XDG application
directories. MIME handlers are ranked by specificity using the number
of declared MimeType entries.
.SH EXAMPLES
.PP
Example configuration:
.PP
.nf
major:text = nvim {target}
ext:pdf = zathura {target}
url:*github.com* = firefox {target}
terminal = alacritty -e
default = code {target}
launcher = rofi -show run
.fi
.SH AUTHOR
Yogesh