nix/home/config/tmux/module/Window.nix

18 lines
422 B
Nix
Raw Normal View History

2024-06-23 04:55:57 +03:00
{ ... }: let
mod = "M";
2024-04-30 20:35:45 +03:00
in {
text = ''
2024-06-23 04:55:57 +03:00
bind -n ${mod}-Escape new-window -c "#{pane_current_path}"
bind -n ${mod}-t new-window -c "#{pane_current_path}"
2024-04-30 20:35:45 +03:00
2024-06-23 04:55:57 +03:00
bind -n ${mod}-x kill-window
bind -n ${mod}-X kill-window -a
2024-04-30 20:35:45 +03:00
2024-06-23 04:55:57 +03:00
bind -n ${mod}-e next-window
bind -n ${mod}-q previous-window
2024-04-30 20:35:45 +03:00
2024-06-23 04:55:57 +03:00
bind -n ${mod}-E swap-window -t +1\; select-window -t +1
bind -n ${mod}-Q swap-window -t -1\; select-window -t -1
2024-04-30 20:35:45 +03:00
'';
}