add tmux back and update

This commit is contained in:
Salar Rahmanian 2025-04-13 22:19:45 -07:00
parent 8e6d869217
commit dfb394ea21
5 changed files with 155 additions and 15 deletions

35
programs/tmux/default.nix Normal file
View file

@ -0,0 +1,35 @@
{ pkgs, ... }:
let
tmuxConfig = builtins.readFile ./tmux.conf;
in
{
programs.tmux = {
enable = true;
baseIndex = 1;
escapeTime = 10;
historyLimit = 10000;
keyMode = "vi";
prefix = "C-a";
terminal = "xterm-256color";
extraConfig = tmuxConfig;
plugins = with pkgs.tmuxPlugins; [
sensible
yank
kanagawa
{
plugin = kanagawa;
extraConfig = ''
set -g @kanagawa-theme 'wave'
set -g @kanagawa-plugins "cpu-usage git"
set -g @kanagawa-show-powerline true
set -g @kanagawa-refresh-rate 10
set -g status-right " #(tms sessions)"
bind -r '(' switch-client -p\; refresh-client -S
bind -r ')' switch-client -n\; refresh-client -S
'';
}
];
};
}