Files
cnix/home/bin/zellij/default.nix
2024-08-03 14:49:44 +02:00

78 lines
2.1 KiB
Nix

{
programs.zellij = {
enable = true;
enableZshIntegration = false;
};
home.shellAliases = {
zr = "zellij run --";
zrf = "zellij run --floating --";
ze = "zellij edit";
zef = "zellij edit --floating";
};
xdg.configFile."zellij/config.kdl".text = ''
default_layout "compact"
mouse_mode true
copy_on_select true
copy_command "wl-copy"
simplified_ui false
scrollback_editor "/home/cnst/.nix-profile/bin/nvim"
pane_frames true
on_force_close "detach"
ui {
pane_frames {
rounded_corners false
}
}
keybinds {
normal {
bind "Alt m" {
LaunchPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
in_place true
kiosk true
};
SwitchToMode "Normal"
}
bind "Ctrl f" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
floating true
}
SwitchToMode "Normal"
}
bind "Alt 1" { GoToTab 1;}
bind "Alt 2" { GoToTab 2;}
bind "Alt 3" { GoToTab 3;}
bind "Alt 4" { GoToTab 4;}
}
shared_except "locked" {
bind "Ctrl y" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/room.wasm" {
floating true
ignore_case true
}
}
}
unbind "Ctrl b" "Ctrl h" "Ctrl g" "Alt j"
}
themes {
gruvbox-dark {
bg "#282828"
fg "#D5C4A1"
black "#3C3836"
red "#CC241D"
green "#98971A"
yellow "#D79921"
blue "#458588"
magenta "#B16286"
cyan "#689D6A"
white "#FBF1C7"
orange "#D65D0E"
}
}
'';
}