mimetype.toml

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