From 3724b1d6f7e79402dc2c1dd08b53944444ef6951 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 7 Nov 2022 21:11:09 +0000 Subject: [PATCH] Play around with tmux conf --- nix-conf/home/includes/dev-common.nix | 1 + nix-conf/home/includes/linux-server.nix | 23 ++--------------------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/nix-conf/home/includes/dev-common.nix b/nix-conf/home/includes/dev-common.nix index bae41ae..d569566 100644 --- a/nix-conf/home/includes/dev-common.nix +++ b/nix-conf/home/includes/dev-common.nix @@ -18,6 +18,7 @@ programs.tmux = { enable = true; terminal = "screen-256color"; + prefix = "C-x"; #tmuxp.enable = true; extraConfig = '' set-option -g status-bg '#666666' diff --git a/nix-conf/home/includes/linux-server.nix b/nix-conf/home/includes/linux-server.nix index c873ef3..c962fea 100644 --- a/nix-conf/home/includes/linux-server.nix +++ b/nix-conf/home/includes/linux-server.nix @@ -17,32 +17,13 @@ pinentryFlavor = "curses"; }; - ## TODO programs.tmux.prefix newSession plugins etc + ## TODO newSession plugins etc programs.tmux = { enable = true; #terminal = "screen-256color"; + prefix = "C-a"; #tmuxp.enable = true; extraConfig = '' - unbind C-b - set -g prefix C-a - bind-key C-a last-window - bind-key a send-prefix - - set-window-option -g automatic-rename off - set-option -g allow-rename off - - set -g bell-action current - - set-option -g lock-command vlock - set -g lock-after-time 0 # Seconds; 0 = never - bind L lock-session - bind l lock-client - - bind-key . source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" - - set -g status-bg black - set -g status-fg white - setw -g window-status-current-format "#[fg=red,bold][#[fg=default]#F#I:#W#F#[fg=red,bold]]#[default]" setw -g window-status-format "#[fg=green]{#[default]#F#I:#W#F#[fg=green]}#[default]"