feat(shell): add tmux

This commit is contained in:
Michael Mandl 2025-06-18 09:01:51 +02:00
parent 32e96d011a
commit 9d43b837ff
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
3 changed files with 33 additions and 2 deletions

View file

@ -90,6 +90,9 @@
# firenvim # firenvim
firenvim firenvim
# tmux
vim-tmux-navigator
]; ];
withNodeJs = true; withNodeJs = true;

View file

@ -1,5 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
home.packages = with pkgs; [ home.packages = with pkgs; [
devenv devenv
difftastic difftastic
@ -25,6 +24,7 @@
./rsync.nix ./rsync.nix
./shell_aliases.nix ./shell_aliases.nix
./starship.nix ./starship.nix
./tmux.nix
./tree.nix ./tree.nix
./zoxide.nix ./zoxide.nix
./zsh.nix ./zsh.nix

28
shell/tmux.nix Normal file
View file

@ -0,0 +1,28 @@
{pkgs, ...}: {
programs = {
tmux = {
enable = true;
clock24 = true;
keyMode = "vi";
escapeTime = 0;
plugins = with pkgs.tmuxPlugins; [
tmux-colors-solarized
vim-tmux-navigator
{
plugin = power-theme;
extraConfig = ''
set -g @tmux_power_theme "colour4"
'';
}
];
terminal = "xterm-256color";
extraConfig = ''
# Terminal overrides
set-option -sa terminal-overrides ",xterm-256color:Tc"
# Reload tmux config to ensure theme is applied
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
'';
};
};
}