2024-06-25 04:04:39 +03:00
|
|
|
{ config, ... }: let
|
2024-06-29 18:05:39 +03:00
|
|
|
accent = config.style.color.accent;
|
|
|
|
bg = config.style.color.bg.regular;
|
2024-06-23 04:55:57 +03:00
|
|
|
# fg = style.color.fg.light;
|
|
|
|
|
|
|
|
stepVertical = 1;
|
|
|
|
stepHorizontal = 1;
|
2024-04-30 20:35:45 +03:00
|
|
|
in {
|
|
|
|
text = ''
|
2024-09-01 04:19:19 +03:00
|
|
|
bind -n M-\\ split-window -h -c "#{pane_current_path}"
|
|
|
|
bind -n M-- split-window -v -c "#{pane_current_path}"
|
|
|
|
bind -n M-= select-layout tiled
|
|
|
|
bind -n M-_ select-layout even-vertical
|
|
|
|
bind -n M-| select-layout even-horizontal
|
|
|
|
bind -n M-k resize-pane -U ${toString stepVertical}
|
|
|
|
bind -n M-j resize-pane -D ${toString stepVertical}
|
|
|
|
bind -n M-h resize-pane -L ${toString stepHorizontal}
|
|
|
|
bind -n M-l resize-pane -R ${toString stepHorizontal}
|
|
|
|
bind -n M-A swap-pane -U
|
|
|
|
bind -n M-D swap-pane -D
|
2024-04-30 20:35:45 +03:00
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
2024-09-01 04:19:19 +03:00
|
|
|
bind -n M-a select-pane -L
|
|
|
|
bind -n M-d select-pane -R
|
|
|
|
bind -n M-w select-pane -U
|
|
|
|
bind -n M-s select-pane -D
|
2024-04-30 20:35:45 +03:00
|
|
|
|
2024-09-01 04:19:19 +03:00
|
|
|
bind -n M-c kill-pane
|
|
|
|
bind -n M-C kill-pane -a
|
2024-04-30 20:35:45 +03:00
|
|
|
|
|
|
|
set -g pane-border-style "fg=#${bg}"
|
|
|
|
set -g pane-active-border-style "fg=#${accent}"
|
|
|
|
'';
|
|
|
|
}
|