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