From 3852551ebed04a4d44d59bb091d89d58a8d75c3d Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 30 Mar 2025 12:55:39 -0400 Subject: [PATCH] fix: not locking zellij when switching sessions --- .../modules/nmasur/presets/programs/zellij.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix index 144fcde..21d5261 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/zellij.nix @@ -65,6 +65,7 @@ in # exitShellOnExit = true; settings = { + default_mode = "locked"; # default_layout = "compact-top"; # Remove border pane_frames = false; @@ -98,6 +99,18 @@ in keybinds = { normal = { }; + session = { + "bind \"w\"" = { + LaunchOrFocusPlugin = { + _args = [ "session-manager" ]; + floating = true; + move_to_focused_tab = true; + }; + SwitchToMode = { + _args = [ "locked" ]; + }; + }; + }; shared = { "bind \"Alt Shift p\"" = { "Run" = {