This commit is contained in:
2026-01-06 14:28:05 +00:00
parent d0168cafe1
commit a47b67faff
6 changed files with 56 additions and 57 deletions

View File

@@ -39,7 +39,6 @@
../../profiles/ripgrep.nix
../../profiles/ssh.nix
../../profiles/starship.nix
../../profiles/zellij.nix
../../profiles/zk.nix
../../profiles/zoxide.nix
../../profiles/zsh.nix

View File

@@ -38,7 +38,6 @@
../../profiles/ripgrep.nix
../../profiles/ssh.nix
../../profiles/starship.nix
../../profiles/zellij.nix
../../profiles/zk.nix
../../profiles/zoxide.nix
../../profiles/zsh.nix

View File

@@ -39,7 +39,6 @@
../../profiles/ripgrep.nix
../../profiles/ssh.nix
../../profiles/starship.nix
../../profiles/zellij.nix
../../profiles/zk.nix
../../profiles/zoxide.nix
../../profiles/zsh.nix

View File

@@ -14,5 +14,57 @@
shell-integration-features = no-cursor
clipboard-read = allow
clipboard-write = allow
keybind = ctrl+t>n=new_tab
keybind = ctrl+t>x=close_tab
keybind = ctrl+t>h=previous_tab
keybind = ctrl+t>left=previous_tab
keybind = ctrl+t>k=previous_tab
keybind = ctrl+t>up=previous_tab
keybind = ctrl+t>l=next_tab
keybind = ctrl+t>right=next_tab
keybind = ctrl+t>j=next_tab
keybind = ctrl+t>down=next_tab
keybind = ctrl+t>tab=last_tab
keybind = ctrl+t>one=goto_tab:1
keybind = ctrl+t>two=goto_tab:2
keybind = ctrl+t>three=goto_tab:3
keybind = ctrl+t>four=goto_tab:4
keybind = ctrl+t>five=goto_tab:5
keybind = ctrl+t>six=goto_tab:6
keybind = ctrl+t>seven=goto_tab:7
keybind = ctrl+t>eight=goto_tab:8
keybind = ctrl+t>nine=goto_tab:9
keybind = ctrl+p>n=new_split:auto
keybind = ctrl+p>d=new_split:down
keybind = ctrl+p>r=new_split:right
keybind = ctrl+p>x=close_surface
keybind = ctrl+p>f=toggle_split_zoom
keybind = ctrl+p>h=goto_split:left
keybind = ctrl+p>left=goto_split:left
keybind = ctrl+p>l=goto_split:right
keybind = ctrl+p>right=goto_split:right
keybind = ctrl+p>j=goto_split:down
keybind = ctrl+p>down=goto_split:down
keybind = ctrl+p>k=goto_split:up
keybind = ctrl+p>up=goto_split:up
keybind = ctrl+p>equal=equalize_splits
keybind = ctrl+n>h=resize_split:left,10
keybind = ctrl+n>left=resize_split:left,10
keybind = ctrl+n>j=resize_split:down,10
keybind = ctrl+n>down=resize_split:down,10
keybind = ctrl+n>k=resize_split:up,10
keybind = ctrl+n>up=resize_split:up,10
keybind = ctrl+n>l=resize_split:right,10
keybind = ctrl+n>right=resize_split:right,10
keybind = ctrl+n>equal=equalize_splits
keybind = alt+n=new_split:auto
keybind = alt+h=goto_split:left
keybind = alt+l=goto_split:right
keybind = alt+j=goto_split:down
keybind = alt+k=goto_split:up
'';
}

View File

@@ -4,5 +4,7 @@ pkgs.writeShellScriptBin "open-project" ''
sed "s~$HOME/Projects/~~" |
fzf --prompt "project > ")
zellij run -i -- /${pkgs.fish}/bin/fish -c "cd $HOME/Projects/$TARGET; fish"
if [ -n "$TARGET" ]; then
echo "$HOME/Projects/$TARGET"
fi
''

View File

@@ -1,52 +0,0 @@
{pkgs, ...}: {
programs.zellij = {
enable = true;
settings = {
theme = "catppuccin-latte";
default_layout = "default";
default_shell = "${pkgs.fish}/bin/fish";
pane_frames = false;
show_startup_tips = false;
show_release_notes = false;
};
};
xdg.configFile."zellij/layouts/default.kdl".text = ''
layout {
default_tab_template {
pane split_direction="vertical" {
pane
}
pane size=1 borderless=true {
plugin location="file:${pkgs.zjstatus}/bin/zjstatus.wasm" {
hide_frame_for_single_pane "true"
format_left "{mode}#[fg=#1e66f5,bg=#eff1f5,bold] {session}#[bg=#eff1f5] {tabs}"
format_right "{datetime}"
format_space "#[bg=#eff1f5]"
mode_normal "#[fg=#eff1f5,bg=#1e66f5] "
mode_locked "#[fg=#eff1f5,bg=#fe640b] L "
mode_tab "#[fg=#eff1f5,bg=#40a02b] T "
mode_pane "#[fg=#eff1f5,bg=#8839ef] P "
mode_session "#[fg=#eff1f5,bg=#04a5e5] S "
mode_resize "#[fg=#eff1f5,bg=#df8e1d] R "
mode_move "#[fg=#eff1f5,bg=#ea76cb] M "
mode_search "#[fg=#eff1f5,bg=#d20f39] S "
tab_normal "#[fg=#acb0be,bg=#eff1f5] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
tab_active "#[fg=#eff1f5,bg=#1e66f5,bold,underline] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}"
tab_fullscreen_indicator " "
tab_sync_indicator " "
tab_floating_indicator "󰉈 "
datetime "#[fg=#4c4f69,bg=#eff1f5] {format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Europe/Berlin"
}
}
}
}
'';
}