From cfb6922a80f5f85fe217f7977ce8475e55cc26b6 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sat, 21 Jun 2025 13:31:40 -0600 Subject: [PATCH] feat: add hut config --- dot_config/hut/private_config.tmpl | 3 ++ dot_config/joshuto/mimetype.toml | 78 ++++++++++++++++++++++-------- 2 files changed, 61 insertions(+), 20 deletions(-) create mode 100644 dot_config/hut/private_config.tmpl diff --git a/dot_config/hut/private_config.tmpl b/dot_config/hut/private_config.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..5679d9671e43de49e4397d672b3c63aef998fa93 --- /dev/null +++ b/dot_config/hut/private_config.tmpl @@ -0,0 +1,3 @@ +instance "sr.ht" { + access-token "{{ onepasswordRead 'op://Private/SourceHut/token' }}" +} diff --git a/dot_config/joshuto/mimetype.toml b/dot_config/joshuto/mimetype.toml index 30970f3128ff3e6373131f8e04065f739af0950b..e9b143a7aac2fd94ff6c3aa992e5b14dd130da81 100644 --- a/dot_config/joshuto/mimetype.toml +++ b/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" }, ]