nix/moduler/common/tmux.nix
2024-05-21 13:50:27 +02:00

36 lines
1.1 KiB
Nix

{ lib, config, pkgs, fetchFromGitHub, ... }:
{
programs.tmux = {
enable = true;
mouse = true;
plugins = with pkgs; [
tmuxPlugins.sensible
# tmuxPlugins.tmux-fzf
tmuxPlugins.pain-control
tmuxPlugins.sessionist
{
plugin = tmuxPlugins.dracula;
extraConfig = ''
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, playerctl, kubernetes-context, synchronize-panes
set -g @dracula-plugins 'playerctl git network time'
set -g @dracula-refresh-rate 10
set -g @dracula-playerctl-format " {{ artist }} - {{ title }}"
set -g @dracula-show-timezone false
set -g @dracula-military-time true
set -g @dracula-day-month true
'';
}
tmuxPlugins.resurrect
tmuxPlugins.continuum
];
prefix = "C-a";
terminal = "xterm-256color";
keyMode = "vi";
escapeTime = 0;
extraConfig = "
";
};
}