From 2ed939b083d74a0060cd27df0e37de9b1c7345dc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 11 Aug 2024 13:41:59 -0400 Subject: [PATCH] meta: Replace zellij with tmux Now that tmux works again, it makes sense to choose it over zellij due to the vastly superior community support around it. Using tmux-256color makes colors work properly in programs like htop, and neovim benefits from squiggly lines and italics from kitty as well. --- home/tmux.nix | 24 ++++++++++++++++++++++++ modules/shell.nix | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 home/tmux.nix diff --git a/home/tmux.nix b/home/tmux.nix new file mode 100644 index 00000000..3f7b9d22 --- /dev/null +++ b/home/tmux.nix @@ -0,0 +1,24 @@ +{ + programs.tmux = { + enable = true; + mouse = true; + + keyMode = "vi"; + + extraConfig = /* fish */ '' + set -sg escape-time 0 + + set -g renumber-windows on + set -g status-right "" + set -g status-left "" + set -g status-justify centre + set -g status-bg black + set -g status-fg white + set -g default-terminal "tmux-256color" + + bind -n S-Left previous-window + bind -n S-Right next-window + bind -n S-Up set status + ''; + }; +} diff --git a/modules/shell.nix b/modules/shell.nix index 0ec0dc99..15eba4a9 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -71,7 +71,6 @@ in inherit (pkgs) gdu hexyl - zellij diskonaut pgcli litecli