Implement claude-mux

This commit is contained in:
2026-07-26 16:33:57 +02:00
parent cd077d8912
commit 55ae88c2d4
14 changed files with 1754 additions and 3 deletions
+17 -1
View File
@@ -11,6 +11,8 @@
./tools/tmux.nix
];
home.packages = [pkgs.claude-mux];
programs.claude-code = {
enable = true;
configDir = "${config.xdg.configHome}/claude";
@@ -78,9 +80,23 @@
);
in "${claudeNotify}";
}
{
type = "command";
command = "${lib.getExe pkgs.claude-mux} hook --status idle";
}
];
}
];
hooks.UserPromptSubmit = [
{hooks = [{type = "command"; command = "${lib.getExe pkgs.claude-mux} hook --status running";}];}
];
hooks.Notification = [
{hooks = [{type = "command"; command = "${lib.getExe pkgs.claude-mux} hook --status questions";}];}
];
hooks.SessionEnd = [
{hooks = [{type = "command"; command = "${lib.getExe pkgs.claude-mux} hook --status closed";}];}
];
}} "${config.xdg.configHome}/claude/settings.json"
'';
@@ -109,7 +125,7 @@
"ctrl+shift+s" = "chat:stash";
"enter" = "chat:newline";
"ctrl+d" = "chat:cancel";
"ctrl+u" = "chat:clearInput";
"ctrl+u" = "chat:stash";
"ctrl+z" = "chat:undo";
"ctrl+y" = "chat:undo";
"ctrl+shift+z" = "chat:redo";