tmux: style
This commit is contained in:
parent
b4bd291e76
commit
da24f19a47
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib) getExe optionalString;
|
||||||
|
|
||||||
cfg = config.snowhawk.tmux;
|
cfg = config.snowhawk.tmux;
|
||||||
sessionizer = cfg.sessionizer;
|
sessionizer = cfg.sessionizer;
|
||||||
in
|
in
|
||||||
|
@ -12,7 +14,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shell = "${pkgs.fish}/bin/fish";
|
shell = getExe pkgs.fish;
|
||||||
mouse = true;
|
mouse = true;
|
||||||
baseIndex = 1;
|
baseIndex = 1;
|
||||||
terminal = "screen-256color";
|
terminal = "screen-256color";
|
||||||
|
@ -37,8 +39,8 @@ in
|
||||||
|
|
||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
'' + optionalString sessionizer.enable ''
|
||||||
${lib.optionalString sessionizer.enable ''bind-key -r f run-shell "tmux neww ${lib.getExe sessionizer.pkg}"''}
|
bind-key -r f run-shell "tmux neww ${getExe sessionizer.pkg}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue