flake/home/applications/zellij/default.nix

36 lines
977 B
Nix
Raw Normal View History

2024-02-03 04:13:24 +00:00
{lib, ...}: {
2024-01-03 20:21:00 +00:00
programs.zellij = {
enable = true;
enableFishIntegration = true;
};
2024-02-03 04:13:24 +00:00
# Unsure about the syntax for defining keybindings in Nix (refer to line 16)
2024-02-03 04:13:24 +00:00
xdg.configFile."zellij/config.kdl".text = lib.mkForce ''
simplified_ui true
pane_frames false
default_layout "compact"
2024-02-03 04:13:24 +00:00
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
2024-02-03 04:13:24 +00:00
keybinds {
normal {
bind "Alt 1" { GoToTab 1; }
bind "Alt 2" { GoToTab 2; }
bind "Alt 3" { GoToTab 3; }
bind "Alt 4" { GoToTab 4; }
bind "Alt 5" { GoToTab 5; }
bind "Alt 6" { GoToTab 6; }
bind "Alt 7" { GoToTab 7; }
bind "Alt 8" { GoToTab 8; }
bind "Alt 9" { GoToTab 9; }
bind "Alt 0" { GoToTab 10; }
}
}
'';
2024-01-03 20:21:00 +00:00
}