From e7803fd7ba4b6f6aca65f2228adf0f7f3e514bbb Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 20 Sep 2026 00:43:50 +0530 Subject: feat(communication/senpai): added desktop entry for senpai --- modules/communication/neomutt/mailcap | 2 +- modules/communication/senpai/default.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'modules/communication') 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"; + }; }; } -- cgit v1.2.3