1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Berk Özkütük 2025-03-26 02:55:54 +03:00 committed by GitHub
commit e0a6f0c7dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 79 additions and 0 deletions

View file

@ -94,6 +94,11 @@ let
bind-key -N "Kill the current pane" x kill-pane
''}
${optionalString cfg.trueColor ''
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
''}
set -g mouse ${boolToStr cfg.mouse}
set -g focus-events ${boolToStr cfg.focusEvents}
setw -g aggressive-resize ${boolToStr cfg.aggressiveResize}
@ -303,6 +308,8 @@ in {
tmuxinator.enable = mkEnableOption "tmuxinator";
trueColor = mkEnableOption "true color support";
plugins = mkOption {
type = with types;
listOf (either package pluginModule) // {

View file

@ -18,6 +18,8 @@ set -g mode-keys emacs
set -g mouse off
set -g focus-events off
setw -g aggressive-resize off

View file

@ -8,4 +8,5 @@
tmux-shortcut-without-prefix = ./shortcut-without-prefix.nix;
tmux-prefix = ./prefix.nix;
tmux-mouse-enabled = ./mouse-enabled.nix;
tmux-truecolor-enabled = ./truecolor-enabled.nix;
}

View file

@ -18,6 +18,8 @@ bind-key -N "Kill the current window" & kill-window
bind-key -N "Kill the current pane" x kill-pane
set -g mouse off
set -g focus-events off
setw -g aggressive-resize off

View file

@ -16,6 +16,8 @@ set -g mode-keys emacs
set -g mouse on
set -g focus-events off
setw -g aggressive-resize off

View file

@ -21,6 +21,8 @@ bind -N "Send the prefix key through to the application" \
set -g mouse off
set -g focus-events off
setw -g aggressive-resize off

View file

@ -22,6 +22,8 @@ bind C-a last-window
set -g mouse off
set -g focus-events off
setw -g aggressive-resize off

View file

@ -0,0 +1,33 @@
# ============================================= #
# Start with defaults from the Sensible plugin #
# --------------------------------------------- #
run-shell @sensible_rtp@
# ============================================= #
set -g default-terminal "screen"
set -g base-index 0
setw -g pane-base-index 0
set -g status-keys emacs
set -g mode-keys emacs
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -g mouse off
setw -g aggressive-resize off
setw -g clock-mode-style 12
set -s escape-time 500
set -g history-limit 2000

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.tmux = {
enable = true;
trueColor = true;
};
nixpkgs.overlays = [
(self: super: {
tmuxPlugins = super.tmuxPlugins // {
sensible = super.tmuxPlugins.sensible // { rtp = "@sensible_rtp@"; };
};
})
];
nmt.script = ''
assertFileExists home-files/.config/tmux/tmux.conf
assertFileContent home-files/.config/tmux/tmux.conf \
${./truecolor-enabled.conf}
'';
};
}

View file

@ -18,6 +18,8 @@ set -g mode-keys vi
set -g mouse off
set -g focus-events off
setw -g aggressive-resize on