feat: add hut config

Amolith created

Change summary

dot_config/hut/private_config.tmpl |  3 +
dot_config/joshuto/mimetype.toml   | 78 +++++++++++++++++++++++--------
2 files changed, 61 insertions(+), 20 deletions(-)

Detailed changes

dot_config/joshuto/mimetype.toml 🔗

@@ -1,26 +1,42 @@
 [class]
 audio_default = [
-  { command = "mpv", args = ["--",] },
-  { command = "mediainfo", confirm_exit = true },
+  { command = "mpv", args = [
+    "--",
+  ] },
+  { command = "mediainfo", pager = true },
 ]
 
 image_default = [
-  { command = "sxiv", args = ["--",], fork = true, silent = true },
-  { command = "krita", args = ["--",], fork = true, silent = true },
-  { command = "exiftool", confirm_exit = true },
-  { command = "swappy", args = ["-f",], fork = true },
+  { command = "qimgv", args = [
+    "--",
+  ], fork = true, silent = true },
+  { command = "krita", args = [
+    "--",
+  ], fork = true, silent = true },
+  { command = "exiftool", pager = true },
+  { command = "swappy", args = [
+    "-f",
+  ], fork = true },
 ]
 
 video_default = [
-  { command = "mpv", args = ["--",], fork = true, silent = true },
-  { command = "mediainfo", confirm_exit = true },
-  { command = "mpv", args = ["--mute", "on", "--",], fork = true, silent = true },
+  { command = "mpv", args = [
+    "--",
+  ], fork = true, silent = true },
+  { command = "mediainfo", pager = true },
+  { command = "mpv", args = [
+    "--mute",
+    "on",
+    "--",
+  ], fork = true, silent = true },
 ]
 
 text_default = [
   { command = "micro" },
   { command = "gedit", fork = true, silent = true },
-  { command = "bat", args = ["--paging=always",] },
+  { command = "bat", args = [
+    "--paging=always",
+  ] },
 ]
 
 reader_default = [{ command = "evince", fork = true, silent = true }]
@@ -108,6 +124,8 @@ log.inherit = "text_default"
 md.inherit = "text_default"
 micro.inherit = "text_default"
 ninja.inherit = "text_default"
+norg.inherit = "text_default"
+org.inherit = "text_default"
 py.inherit = "text_default"
 rkt.inherit = "text_default"
 rs.inherit = "text_default"
@@ -125,36 +143,56 @@ yml.inherit = "text_default"
 
 # archive formats
 7z.app_list = [
-  { command = "7z", args = ["x",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "7z", args = [
+    "x",
+  ] },
 ]
 bz2.app_list = [
-  { command = "tar", args = ["-xvjf",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "tar", args = [
+    "-xvjf",
+  ] },
 ]
 gz.app_list = [
-  { command = "tar", args = ["-xvzf",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "tar", args = [
+    "-xvzf",
+  ] },
 ]
 tar.app_list = [
-  { command = "tar", args = ["-xvf",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "tar", args = [
+    "-xvf",
+  ] },
 ]
 tgz.app_list = [
-  { command = "tar", args = ["-xvzf",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "tar", args = [
+    "-xvzf",
+  ] },
 ]
 rar.app_list = [
-  { command = "unrar", args = ["x",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "unrar", args = [
+    "x",
+  ] },
 ]
 xz.app_list = [
-  { command = "tar", args = ["-xvJf",], confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "tar", args = [
+    "-xvJf",
+  ] },
 ]
 zip.app_list = [
-  { command = "unzip", confirm_exit = true },
   { command = "file-roller", fork = true, silent = true },
+  { command = "unzip" },
+]
+zst.app_list = [
+  { command = "file-roller", fork = true, silent = true },
+  { command = "zstd", args = [
+      "-d"
+    ] },
 ]
 
 # misc formats
@@ -164,7 +202,7 @@ m3u.app_list = [
   { command = "micro" },
   { command = "mpv" },
   { command = "gedit", fork = true, silent = true },
-  { command = "bat", confirm_exit = true },
+  { command = "bat", pager = true },
 ]
 
 odt.inherit = "libreoffice_default"
@@ -187,7 +225,7 @@ kdenlive.app_list = [{ command = "kdenlive", fork = true, silent = true }]
 tex.app_list = [
   { command = "micro" },
   { command = "gedit", fork = true, silent = true },
-  { command = "bat", confirm_exit = true },
+  { command = "bat", pager = true },
   { command = "pdflatex" },
 ]