From fc97e5dcf055f8a5cbfc343c3cf02d9fd4400cf4 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 1 Mar 2024 00:44:14 +0800 Subject: [PATCH] home/zellij: disable `session_serialization` to increase startup speed --- home/applications/zellij/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home/applications/zellij/default.nix b/home/applications/zellij/default.nix index b8f6234..4dc6e61 100644 --- a/home/applications/zellij/default.nix +++ b/home/applications/zellij/default.nix @@ -4,16 +4,22 @@ enableFishIntegration = true; }; - # not sure how to write keybinds in nix (see line 16) + # Unsure about the syntax for defining keybindings in Nix (refer to line 16) xdg.configFile."zellij/config.kdl".text = lib.mkForce '' + // TODO: Text selection is not displayed due to the use of the same color as + // my terminal background. theme "tokyo-night-dark" simplified_ui true pane_frames false - default_layout "compact" // still learning the keybinds! + default_layout "compact" on_force_close "quit" mirror_session false + // WORKAROUND: This feature slows down startup speed, and I don't need it anyway. + // See: https://github.com/zellij-org/zellij/issues/1757#issuecomment-1962981641 + session_serialization false + keybinds { normal { bind "Alt 1" { GoToTab 1; }