2023-12-17 05:59:09 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.custom-hm.zellij;
|
|
|
|
in
|
|
|
|
{
|
2023-12-24 10:53:47 +00:00
|
|
|
options.custom-hm.zellij = {
|
2023-12-17 05:59:09 +00:00
|
|
|
enable = mkEnableOption "zellij configurations";
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
programs.zellij = mkIf cfg.enable {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default_shell = "fish";
|
|
|
|
keybinds = {
|
|
|
|
unbind = [
|
|
|
|
"Ctrl p"
|
|
|
|
"Ctrl n"
|
|
|
|
];
|
2024-07-22 08:43:02 +00:00
|
|
|
shared_except = {
|
|
|
|
_args = [ "pane" "locked" ];
|
|
|
|
bind = {
|
|
|
|
_args = [ "Ctrl b"];
|
|
|
|
SwitchToMode = "Pane";
|
|
|
|
};
|
|
|
|
};
|
2023-12-17 05:59:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|