From a47b67faff8e576859e17ccd6309b07ca11fe547 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Tue, 6 Jan 2026 14:28:05 +0000 Subject: [PATCH] haha --- hosts/chidi/default.nix | 1 - hosts/jason/default.nix | 1 - hosts/tahani/default.nix | 1 - profiles/ghostty.nix | 52 +++++++++++++++++++++++++++++++++++++++ profiles/open-project.nix | 6 +++-- profiles/zellij.nix | 52 --------------------------------------- 6 files changed, 56 insertions(+), 57 deletions(-) delete mode 100644 profiles/zellij.nix diff --git a/hosts/chidi/default.nix b/hosts/chidi/default.nix index 2095847..767f309 100644 --- a/hosts/chidi/default.nix +++ b/hosts/chidi/default.nix @@ -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 diff --git a/hosts/jason/default.nix b/hosts/jason/default.nix index 9c54d90..6816fa7 100644 --- a/hosts/jason/default.nix +++ b/hosts/jason/default.nix @@ -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 diff --git a/hosts/tahani/default.nix b/hosts/tahani/default.nix index 3a2918e..3d0062d 100644 --- a/hosts/tahani/default.nix +++ b/hosts/tahani/default.nix @@ -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 diff --git a/profiles/ghostty.nix b/profiles/ghostty.nix index bfadbe4..5a3b8de 100644 --- a/profiles/ghostty.nix +++ b/profiles/ghostty.nix @@ -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 ''; } diff --git a/profiles/open-project.nix b/profiles/open-project.nix index 79b9dd4..c3de0f8 100644 --- a/profiles/open-project.nix +++ b/profiles/open-project.nix @@ -1,8 +1,10 @@ {pkgs}: pkgs.writeShellScriptBin "open-project" '' - TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects | + TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects | 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 '' diff --git a/profiles/zellij.nix b/profiles/zellij.nix deleted file mode 100644 index 8533e0d..0000000 --- a/profiles/zellij.nix +++ /dev/null @@ -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" - } - } - } - } - ''; -}