From 8d7035a4e6eb095c022ecf7bf656c844a004d8b5 Mon Sep 17 00:00:00 2001 From: moons14 Date: Sat, 6 Jun 2026 14:26:07 +0900 Subject: [PATCH 1/2] fix: enable zellij copy without stealing Ctrl-C --- modules/applications/ghostty/config | 2 +- modules/applications/zellij/home.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/applications/ghostty/config b/modules/applications/ghostty/config index 0280dd4..0e55901 100644 --- a/modules/applications/ghostty/config +++ b/modules/applications/ghostty/config @@ -9,7 +9,7 @@ window-decoration = true # keybind # Copy/Paste -keybind = ctrl+shift+c=copy_to_clipboard +keybind = performable:ctrl+shift+c=copy_to_clipboard keybind = ctrl+shift+v=paste_from_clipboard # create new tab diff --git a/modules/applications/zellij/home.nix b/modules/applications/zellij/home.nix index 3a4dbe4..1f6f449 100644 --- a/modules/applications/zellij/home.nix +++ b/modules/applications/zellij/home.nix @@ -21,6 +21,7 @@ in settings = { pane_frames = true; + copy_clipboard = "system"; copy_on_select = false; default_mode = "locked"; default_shell = "/run/current-system/sw/bin/zsh"; @@ -40,7 +41,8 @@ in bind "Alt J" { Resize "Increase Down"; } bind "Alt K" { Resize "Increase Up"; } bind "Alt L" { Resize "Increase Right"; } - bind "Alt c" { Copy; } + // Do not bind Ctrl+C here: it must pass through to pane processes as SIGINT. + bind "Alt c" "Ctrl Shift c" { Copy; } } normal { bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } @@ -49,6 +51,7 @@ in bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } bind "Alt n" { NewPane; } bind "Alt t" { NewTab; } + bind "Ctrl Shift c" { Copy; } bind "Alt H" { Resize "Increase Left"; } bind "Alt J" { Resize "Increase Down"; } bind "Alt K" { Resize "Increase Up"; } From a46e32c81041b4e4f7a92d709335b4a6d6fde854 Mon Sep 17 00:00:00 2001 From: moons14 Date: Sat, 6 Jun 2026 14:26:43 +0900 Subject: [PATCH 2/2] Remove comment on Ctrl+C binding in home.nix Removed comment about Ctrl+C binding to allow SIGINT. --- modules/applications/zellij/home.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/applications/zellij/home.nix b/modules/applications/zellij/home.nix index 1f6f449..98c40ee 100644 --- a/modules/applications/zellij/home.nix +++ b/modules/applications/zellij/home.nix @@ -41,7 +41,6 @@ in bind "Alt J" { Resize "Increase Down"; } bind "Alt K" { Resize "Increase Up"; } bind "Alt L" { Resize "Increase Right"; } - // Do not bind Ctrl+C here: it must pass through to pane processes as SIGINT. bind "Alt c" "Ctrl Shift c" { Copy; } } normal {