2024-04-14 16:15:24 -04:00
|
|
|
{pkgs, ...}: let
|
2024-04-14 16:28:29 -04:00
|
|
|
dreamsofcode-io-catppuccin-tmux =
|
2024-04-14 16:15:24 -04:00
|
|
|
pkgs.tmuxPlugins.mkTmuxPlugin
|
|
|
|
|
{
|
2024-04-14 16:30:12 -04:00
|
|
|
pluginName = "catppuccin";
|
2024-04-14 16:15:24 -04:00
|
|
|
version = "unstable-2023-01-06";
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
2024-04-14 16:28:29 -04:00
|
|
|
owner = "dreamsofcode-io";
|
|
|
|
|
repo = "catppuccin-tmux";
|
|
|
|
|
rev = "b4e0715356f820fc72ea8e8baf34f0f60e891718";
|
|
|
|
|
sha256 = "sha256-FJHM6LJkiAwxaLd5pnAoF3a7AE1ZqHWoCpUJE0ncCA8=";
|
2024-04-14 16:15:24 -04:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
in {
|
|
|
|
|
programs.tmux = {
|
|
|
|
|
enable = true;
|
|
|
|
|
shell = "${pkgs.zsh}/bin/zsh";
|
|
|
|
|
historyLimit = 100000;
|
|
|
|
|
plugins = with pkgs; [
|
2024-04-14 16:28:29 -04:00
|
|
|
{
|
|
|
|
|
plugin = dreamsofcode-io-catppuccin-tmux;
|
|
|
|
|
extraConfig = "";
|
|
|
|
|
}
|
2024-04-14 16:15:24 -04:00
|
|
|
tmuxPlugins.sensible
|
2024-04-14 16:17:08 -04:00
|
|
|
tmuxPlugins.vim-tmux-navigator
|
2024-04-14 16:35:29 -04:00
|
|
|
tmuxPlugins.yank
|
2024-04-14 16:15:24 -04:00
|
|
|
];
|
|
|
|
|
extraConfig = ''
|
2024-04-14 16:23:15 -04:00
|
|
|
set-option -sa terminal-overrides ",xterm*:Tc"
|
2024-04-14 16:35:29 -04:00
|
|
|
set -g mouse on
|
|
|
|
|
|
2024-04-17 16:14:57 -04:00
|
|
|
set -g @catppuccin-flavor 'macchiato'
|
|
|
|
|
|
2024-04-14 16:35:29 -04:00
|
|
|
set -g base-index 1
|
|
|
|
|
set -g pane-base-index 1
|
|
|
|
|
set-window-option -g pane-base-index 1
|
|
|
|
|
set-option -g renumber-windows on
|
|
|
|
|
|
|
|
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
|
|
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
|
|
|
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
|
|
|
|
|
|
|
|
|
bind '"' split-window -v -c "#{pane_current_path}"
|
|
|
|
|
bind % split-window -v -c "#{pane_current_path}"
|
2024-04-14 16:15:24 -04:00
|
|
|
|
2024-04-14 16:23:15 -04:00
|
|
|
unbind C-b
|
|
|
|
|
set -g prefix C-Space
|
|
|
|
|
bind C-Space send-prefix
|
|
|
|
|
|
|
|
|
|
bind -n M-H previous-window
|
|
|
|
|
bind -n M-L next-window
|
2024-04-14 16:15:24 -04:00
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
}
|