summaryrefslogtreecommitdiffstats
path: root/common/commandline
diff options
context:
space:
mode:
Diffstat (limited to 'common/commandline')
-rw-r--r--common/commandline/tmux.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/common/commandline/tmux.nix b/common/commandline/tmux.nix
index 84d2cc8..b355662 100644
--- a/common/commandline/tmux.nix
+++ b/common/commandline/tmux.nix
@@ -1,8 +1,8 @@
1inputs: 1inputs: {
2 2 config,
3{ config, pkgs, ... } : 3 pkgs,
4 4 ...
5let 5}: let
6 # Thanks: https://github.com/DanielFGray/dotfiles/blob/master/tmux.remote.conf 6 # Thanks: https://github.com/DanielFGray/dotfiles/blob/master/tmux.remote.conf
7 remoteConf = builtins.toFile "tmux.remote.conf" '' 7 remoteConf = builtins.toFile "tmux.remote.conf" ''
8 unbind C-q 8 unbind C-q
@@ -21,13 +21,9 @@ in {
21 terminal = "tmux-256color"; 21 terminal = "tmux-256color";
22 historyLimit = 50000; 22 historyLimit = 50000;
23 23
24 extraConfig = with config.theme; with pkgs.tmuxPlugins; 24 plugins = with pkgs.tmuxPlugins; [copycat sensible urlview];
25 ''
26 # Plugins
27 run-shell '${copycat}/share/tmux-plugins/copycat/copycat.tmux'
28 run-shell '${sensible}/share/tmux-plugins/sensible/sensible.tmux'
29 run-shell '${urlview}/share/tmux-plugins/urlview/urlview.tmux'
30 25
26 extraConfig = with config.theme; ''
31 bind-key R run-shell ' \ 27 bind-key R run-shell ' \
32 tmux source-file /etc/tmux.conf > /dev/null; \ 28 tmux source-file /etc/tmux.conf > /dev/null; \
33 tmux display-message "sourced /etc/tmux.conf"' 29 tmux display-message "sourced /etc/tmux.conf"'
@@ -38,7 +34,9 @@ in {
38 set-option -g status-left-length 20 34 set-option -g status-left-length 20
39 set-option -g @prefix_highlight_fg '${colors.background}' 35 set-option -g @prefix_highlight_fg '${colors.background}'
40 set-option -g @prefix_highlight_bg '${colors.dominant}' 36 set-option -g @prefix_highlight_bg '${colors.dominant}'
41 run-shell '${prefix-highlight}/share/tmux-plugins/prefix-highlight/prefix_highlight.tmux' 37
38 # Add plugin here because it needs its configuration
39 run-shell '${pkgs.tmuxPlugins.prefix-highlight}/share/tmux-plugins/prefix-highlight/prefix_highlight.tmux'
42 40
43 # Be faster switching windows 41 # Be faster switching windows
44 bind C-n next-window 42 bind C-n next-window