1[class]
2audio_default = [
3 { command = "mpv", args = [
4 "--",
5 ] },
6 { command = "mediainfo", pager = true },
7]
8
9image_default = [
10 { command = "qimgv", args = [
11 "--",
12 ], fork = true, silent = true },
13 { command = "krita", args = [
14 "--",
15 ], fork = true, silent = true },
16 { command = "exiftool", pager = true },
17 { command = "swappy", args = [
18 "-f",
19 ], fork = true },
20]
21
22video_default = [
23 { command = "mpv", args = [
24 "--",
25 ], fork = true, silent = true },
26 { command = "mediainfo", pager = true },
27 { command = "mpv", args = [
28 "--mute",
29 "on",
30 "--",
31 ], fork = true, silent = true },
32]
33
34text_default = [
35 { command = "micro" },
36 { command = "gedit", fork = true, silent = true },
37 { command = "bat", args = [
38 "--paging=always",
39 ] },
40]
41
42reader_default = [{ command = "evince", fork = true, silent = true }]
43
44libreoffice_default = [{ command = "libreoffice", fork = true, silent = true }]
45
46[extension]
47
48## image formats
49avif.inherit = "image_default"
50bmp.inherit = "image_default"
51gif.inherit = "image_default"
52heic.inherit = "image_default"
53jpeg.inherit = "image_default"
54jpe.inherit = "image_default"
55jpg.inherit = "image_default"
56jxl.inherit = "image_default"
57pgm.inherit = "image_default"
58png.inherit = "image_default"
59ppm.inherit = "image_default"
60webp.inherit = "image_default"
61
62svg.app_list = [
63 { command = "inkview", fork = true, silent = true },
64 { command = "inkscape", fork = true, silent = true },
65]
66tiff.app_list = [
67 { command = "qimgv", fork = true, silent = true },
68 { command = "krita", fork = true, silent = true },
69]
70
71## audio formats
72aac.inherit = "audio_default"
73ac3.inherit = "audio_default"
74aiff.inherit = "audio_default"
75ape.inherit = "audio_default"
76dts.inherit = "audio_default"
77flac.inherit = "audio_default"
78m4a.inherit = "audio_default"
79mp3.inherit = "audio_default"
80oga.inherit = "audio_default"
81ogg.inherit = "audio_default"
82opus.inherit = "audio_default"
83wav.inherit = "audio_default"
84wv.inherit = "audio_default"
85
86## video formats
87avi.inherit = "video_default"
88av1.inherit = "video_default"
89flv.inherit = "video_default"
90mkv.inherit = "video_default"
91m4v.inherit = "video_default"
92mov.inherit = "video_default"
93mp4.inherit = "video_default"
94ts.inherit = "video_default"
95webm.inherit = "video_default"
96wmv.inherit = "video_default"
97
98## text formats
99build.inherit = "text_default"
100c.inherit = "text_default"
101cmake.inherit = "text_default"
102conf.inherit = "text_default"
103cpp.inherit = "text_default"
104css.inherit = "text_default"
105csv.inherit = "text_default"
106cu.inherit = "text_default"
107ebuild.inherit = "text_default"
108eex.inherit = "text_default"
109env.inherit = "text_default"
110ex.inherit = "text_default"
111exs.inherit = "text_default"
112go.inherit = "text_default"
113h.inherit = "text_default"
114hpp.inherit = "text_default"
115hs.inherit = "text_default"
116html.inherit = "text_default"
117ini.inherit = "text_default"
118java.inherit = "text_default"
119js.inherit = "text_default"
120json.inherit = "text_default"
121kt.inherit = "text_default"
122lua.inherit = "text_default"
123log.inherit = "text_default"
124md.inherit = "text_default"
125micro.inherit = "text_default"
126ninja.inherit = "text_default"
127norg.inherit = "text_default"
128org.inherit = "text_default"
129py.inherit = "text_default"
130rkt.inherit = "text_default"
131rs.inherit = "text_default"
132scss.inherit = "text_default"
133sh.inherit = "text_default"
134srt.inherit = "text_default"
135svelte.inherit = "text_default"
136toml.inherit = "text_default"
137tsx.inherit = "text_default"
138txt.inherit = "text_default"
139vim.inherit = "text_default"
140xml.inherit = "text_default"
141yaml.inherit = "text_default"
142yml.inherit = "text_default"
143
144# archive formats
1457z.app_list = [
146 { command = "file-roller", fork = true, silent = true },
147 { command = "7z", args = [
148 "x",
149 ] },
150]
151bz2.app_list = [
152 { command = "file-roller", fork = true, silent = true },
153 { command = "tar", args = [
154 "-xvjf",
155 ] },
156]
157gz.app_list = [
158 { command = "file-roller", fork = true, silent = true },
159 { command = "tar", args = [
160 "-xvzf",
161 ] },
162]
163tar.app_list = [
164 { command = "file-roller", fork = true, silent = true },
165 { command = "tar", args = [
166 "-xvf",
167 ] },
168]
169tgz.app_list = [
170 { command = "file-roller", fork = true, silent = true },
171 { command = "tar", args = [
172 "-xvzf",
173 ] },
174]
175rar.app_list = [
176 { command = "file-roller", fork = true, silent = true },
177 { command = "unrar", args = [
178 "x",
179 ] },
180]
181xz.app_list = [
182 { command = "file-roller", fork = true, silent = true },
183 { command = "tar", args = [
184 "-xvJf",
185 ] },
186]
187zip.app_list = [
188 { command = "file-roller", fork = true, silent = true },
189 { command = "unzip" },
190]
191zst.app_list = [
192 { command = "file-roller", fork = true, silent = true },
193 { command = "zstd", args = [
194 "-d"
195 ] },
196]
197
198# misc formats
199aup.app_list = [{ command = "audacity", fork = true, silent = true }]
200
201m3u.app_list = [
202 { command = "micro" },
203 { command = "mpv" },
204 { command = "gedit", fork = true, silent = true },
205 { command = "bat", pager = true },
206]
207
208odt.inherit = "libreoffice_default"
209odf.inherit = "libreoffice_default"
210ods.inherit = "libreoffice_default"
211odp.inherit = "libreoffice_default"
212
213doc.inherit = "libreoffice_default"
214docx.inherit = "libreoffice_default"
215xls.inherit = "libreoffice_default"
216xlsx.inherit = "libreoffice_default"
217ppt.inherit = "libreoffice_default"
218pptx.inherit = "libreoffice_default"
219
220pdf.inherit = "reader_default"
221
222kra.app_list = [{ command = "krita", fork = true, silent = true }]
223kdenlive.app_list = [{ command = "kdenlive", fork = true, silent = true }]
224
225tex.app_list = [
226 { command = "micro" },
227 { command = "gedit", fork = true, silent = true },
228 { command = "bat", pager = true },
229 { command = "pdflatex" },
230]
231
232torrent.app_list = [{ command = "transmission-gtk" }]
233
234[mimetype]
235
236# application/octet-stream
237[mimetype.application.subtype.octet-stream]
238inherit = "video_default"
239
240# text/*
241[mimetype.text]
242inherit = "text_default"
243
244# text/*
245[mimetype.video]
246inherit = "video_default"