about summary refs log tree commit diff stats
path: root/nix-conf/home/includes
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-10-22 16:18:27 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-10-22 16:18:27 +0100
commit210deb85e33d8c6c2197e2fe75a88ff1037b2a9c (patch)
tree98c9b59740c2791e91b0f52ba7e725a0e87dda84 /nix-conf/home/includes
parentde0737de73fe4d75a33a3cd9cff61e5f68220b7d (diff)
downloaddotfiles-210deb85e33d8c6c2197e2fe75a88ff1037b2a9c.tar.gz
Server tmux config
Diffstat (limited to 'nix-conf/home/includes')
-rw-r--r--nix-conf/home/includes/linux-server.nix39
1 files changed, 38 insertions, 1 deletions
diff --git a/nix-conf/home/includes/linux-server.nix b/nix-conf/home/includes/linux-server.nix
index 7006350..2b97580 100644
--- a/nix-conf/home/includes/linux-server.nix
+++ b/nix-conf/home/includes/linux-server.nix
@@ -11,6 +11,43 @@
     neomutt
   ];
 
-  ## TODO tmux
+  ## TODO programs.tmux.prefix newSession plugins etc
+  programs.tmux = {
+    enable = true;
+    #terminal = "screen-256color";
+    #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]"
+
+        set -g status-left-length 17
+
+        set -g status-interval 1
+
+        set -g status-left "#[fg=yellow]#h#[default]"
+        set -g status-right "#[fg=magenta,bold]#(/home/djm/bin/showmail.sh)#[fg=blue]%a%d/%m#[fg=yellow]#(TZ=\'Europe/London\' date \'+%H:%M:%S\')"
+    '';
+  };
+
 }