feat(tmux): use soft secrets to handle sessions
This commit is contained in:
parent
8bf663b78a
commit
6e9ef448db
4 changed files with 12 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
{ lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, inputs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.cli.tmux;
|
||||
|
@ -51,9 +51,6 @@ in
|
|||
bind -n M-F3 if 'tmux has-session -t 3' {switch-client -t 3} {display-popup -E -E 'create-tmux-session -i 3'}
|
||||
bind -n M-F4 if 'tmux has-session -t 4' {switch-client -t 4} {display-popup -E -E 'create-tmux-session -i 4'}
|
||||
|
||||
# Alt+F10 for launching my Nix project
|
||||
bind -n M-F10 run 'create-tmux-session -n config -r nix "run:nvim ." vsplit:20'
|
||||
|
||||
# change window with Alt+{1..5}
|
||||
bind -n -N "Goto window 1" M-1 select-window -T -t 1
|
||||
bind -n -N "Goto window 2" M-2 select-window -T -t 2
|
||||
|
@ -86,7 +83,9 @@ in
|
|||
set -g status-left-length 100
|
||||
set -g status-left '#[bg=colour0, fg=colour6] #S '
|
||||
set -g status-right ' '
|
||||
'' + cfg.extraConfig;
|
||||
''
|
||||
+ inputs.nix-private.tmux.nix
|
||||
+ cfg.extraConfig;
|
||||
plugins = with pkgs; [
|
||||
tmuxPlugins.tmux-fzf
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue