diff options
| -rw-r--r-- | modules/communication/neomutt/mailcap | 2 | ||||
| -rw-r--r-- | modules/communication/senpai/default.nix | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/modules/communication/neomutt/mailcap b/modules/communication/neomutt/mailcap index 3af2794..cd47209 100644 --- a/modules/communication/neomutt/mailcap +++ b/modules/communication/neomutt/mailcap @@ -1,6 +1,6 @@ text/html; @@HTML_VIEWER@@ '%s'; nametemplate=%s.html image/*; xdg-open '%s' & -application/pdf; xdg-open '%s'; nametemplate=%s.pdf +application/*; xdg-open '%s' & video/*; xdg-open '%s' & audio/*; xdg-open '%s' & application/*; xdg-open '%s' & diff --git a/modules/communication/senpai/default.nix b/modules/communication/senpai/default.nix index 51fc041..274e4d7 100644 --- a/modules/communication/senpai/default.nix +++ b/modules/communication/senpai/default.nix @@ -53,5 +53,23 @@ ]; }; }; + + xdg.desktopEntries."senpai" = { + name = "Senpai"; + exec = "${lib.getExe config.terminal.kitty.package} --class senpai -e ${lib.getExe config.communication.senpai.package}"; + icon = "senpai"; + categories = [ + "Network" + "Chat" + ]; + comment = "Senpai TUI IRC Client"; + terminal = false; + type = "Application"; + }; + + xdg.mimeApps.defaultApplications = { + "x-scheme-handler/irc" = "senpai.desktop"; + "x-scheme-handler/ircs" = "senpai.desktop"; + }; }; } |
