nix/tmux/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2022-11-25 16:30:22 +00:00
{ config, pkgs, ... }:
{
programs.tmux = {
enable = true;
clock24 = true;
shell = "${pkgs.bashInteractive}/bin/bash";
plugins = with pkgs.tmuxPlugins; [
yank
cpu
resurrect
continuum
{
plugin = dracula;
extraConfig = ''
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
set -g @dracula-refresh-rate 10
set -g @dracula-military-time true
set -g @dracula-plugins "battery cpu-usage ram-usage time"
'';
}
];
extraConfig = ''
# VIM, Prefix, Renumber
setw -g mode-keys vi
set-option -g prefix C-t
set-option -g renumber-windows on
# Maintain Directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Set Colors
# set -g default-terminal "screen-256color"
# set-option -ga terminal-overrides ",xterm-256color:Tc"
2022-11-30 19:12:27 +00:00
# set -g status-style bg='#395A65',fg='#B0BEC5'
2022-11-25 16:30:22 +00:00
'';
};
}