diff options
| author | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:41 +0300 |
|---|---|---|
| committer | spl3g <notspl3g@duck.com> | 2026-03-18 18:01:59 +0300 |
| commit | 03648b3d9f177227df40129bed22558f6924b91c (patch) | |
| tree | 8a22eda142beeafd9002a8d5901ba9428a77ad52 /modules/homeModules/tmux.nix | |
| parent | dc19a2b583b3ab50d8e36ff0a90ca633495f675f (diff) | |
so.. v2 i guess
Diffstat (limited to 'modules/homeModules/tmux.nix')
| -rw-r--r-- | modules/homeModules/tmux.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/homeModules/tmux.nix b/modules/homeModules/tmux.nix new file mode 100644 index 0000000..97f85dc --- /dev/null +++ b/modules/homeModules/tmux.nix @@ -0,0 +1,50 @@ +{inputs, ...}: { + flake.homeModules.tmux = { + pkgs, + lib, + config, + ... + }: { + options.customs = { + tmux.enable = lib.mkEnableOption "enable tmux config"; + }; + + config = lib.mkIf config.customs.tmux.enable { + stylix.targets.tmux.enable = true; + home.packages = with pkgs; [ + fzf + ]; + programs.tmux = { + enable = true; + prefix = "C-x"; + baseIndex = 1; + historyLimit = 10000; + extraConfig = '' + set -g mode-keys vi + set -g default-terminal "''${TERM}" + set -sg terminal-overrides ",*:RGB" + + set -g pane-border-lines simple + + set -g escape-time 0 + set -g renumber-windows on + + set -g status-style bg=default,fg=black,bright + set -g status-left "" + set -g window-status-format " #W " + set -g window-status-current-format " #W " + + set -g window-status-bell-style "bg=red,nobold" + set -g window-status-current-style \ + "#{?window_zoomed_flag,bg=yellow,bg=green,nobold}" + + bind j next-window + bind k previous-window + ''; + plugins = with pkgs.tmuxPlugins; [ + tmux-fzf + ]; + }; + }; + }; +} |
