about summary refs log tree commit diff stats
path: root/nix-conf/home/includes/linux-server.nix
blob: 2b9758038094389517795c5e4b31c577a8706e59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ config, pkgs, ... }:
{
  imports = [
    ./common.nix
  ];

  home.packages = with pkgs; [
    emacs-nox
    irssi
    msmtp
    neomutt
  ];

  ## 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\')"
    '';
  };

}