From 8f0788f8e076426c28cdbb3d2af1b31ba2837cd1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 3 Dec 2023 11:05:06 +0100 Subject: zellij: Also lock with Ctrl + q (and move quite to Alt + q) Exiting on Ctrl + q is dangerous and happens all the time... Signed-off-by: David Runge --- .config/zellij/config.kdl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/zellij/config.kdl b/.config/zellij/config.kdl index 86de409..15308c0 100644 --- a/.config/zellij/config.kdl +++ b/.config/zellij/config.kdl @@ -5,7 +5,7 @@ keybinds { // bind "Alt c" { Copy; } } locked { - bind "Ctrl g" { SwitchToMode "Normal"; } + bind "Ctrl g" "Ctrl q" { SwitchToMode "Normal"; } } resize { bind "Ctrl n" { SwitchToMode "Normal"; } @@ -135,8 +135,8 @@ keybinds { bind "x" { CloseFocus; SwitchToMode "Normal"; } } shared_except "locked" { - bind "Ctrl g" { SwitchToMode "Locked"; } - bind "Ctrl q" { Quit; } + bind "Ctrl g" "Ctrl q" { SwitchToMode "Locked"; } + bind "Alt q" { Quit; } bind "Alt n" { NewPane; } bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } -- cgit v1.2.3-70-g09d2