refactor(wip): make common a bit better

This commit is contained in:
matt1432 2023-12-01 03:07:17 -05:00
parent cab24db17b
commit 3184379170
10 changed files with 80 additions and 79 deletions
common/home/tmux

View file

@ -0,0 +1,26 @@
{pkgs, ...}: {
programs = {
tmux = {
enable = true;
mouse = true;
keyMode = "vi";
terminal = "tmux-256color";
newSession = true;
historyLimit = 30000;
plugins = with pkgs.tmuxPlugins; [
dracula
];
extraConfig = ''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
set -ga terminal-overrides ",*256col*:Tc"
'';
};
};
}