mirror of
https://github.com/softinio/nix-config.git
synced 2025-09-03 16:16:42 -07:00
add tmux back and update
This commit is contained in:
parent
8e6d869217
commit
dfb394ea21
5 changed files with 155 additions and 15 deletions
35
programs/tmux/default.nix
Normal file
35
programs/tmux/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
tmuxConfig = builtins.readFile ./tmux.conf;
|
||||
in
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
baseIndex = 1;
|
||||
escapeTime = 10;
|
||||
historyLimit = 10000;
|
||||
keyMode = "vi";
|
||||
prefix = "C-a";
|
||||
terminal = "xterm-256color";
|
||||
extraConfig = tmuxConfig;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
sensible
|
||||
yank
|
||||
kanagawa
|
||||
{
|
||||
plugin = kanagawa;
|
||||
extraConfig = ''
|
||||
set -g @kanagawa-theme 'wave'
|
||||
set -g @kanagawa-plugins "cpu-usage git"
|
||||
set -g @kanagawa-show-powerline true
|
||||
set -g @kanagawa-refresh-rate 10
|
||||
|
||||
set -g status-right " #(tms sessions)"
|
||||
bind -r '(' switch-client -p\; refresh-client -S
|
||||
bind -r ')' switch-client -n\; refresh-client -S
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue