about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-07 21:11:09 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-07 21:12:22 +0000
commit3724b1d6f7e79402dc2c1dd08b53944444ef6951 (patch)
tree4c27e46719a1eb69400c4a817b545e8f69a5d909 /nix-conf
parentbe428558d710006eaefb36f09ad18e23299574cd (diff)
downloaddotfiles-3724b1d6f7e79402dc2c1dd08b53944444ef6951.tar.gz
Play around with tmux conf
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/home/includes/dev-common.nix1
-rw-r--r--nix-conf/home/includes/linux-server.nix23
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]"