2024-06-25 04:04:39 +03:00
|
|
|
{ config, ... }: let
|
2024-06-23 04:55:57 +03:00
|
|
|
mod = "M";
|
2024-04-30 20:35:45 +03:00
|
|
|
|
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-06-23 06:43:45 +03:00
|
|
|
bind -n ${mod}-\\ split-window -h -c "#{pane_current_path}"
|
|
|
|
bind -n ${mod}-- split-window -v -c "#{pane_current_path}"
|
2024-06-23 04:55:57 +03:00
|
|
|
bind -n ${mod}-= select-layout tiled
|
2024-08-29 11:42:34 +03:00
|
|
|
bind -n ${mod}-+ select-layout even-vertical
|
2024-06-23 06:43:45 +03:00
|
|
|
bind -n ${mod}-k resize-pane -U ${toString stepVertical}
|
|
|
|
bind -n ${mod}-j resize-pane -D ${toString stepVertical}
|
|
|
|
bind -n ${mod}-h resize-pane -L ${toString stepHorizontal}
|
|
|
|
bind -n ${mod}-l resize-pane -R ${toString stepHorizontal}
|
2024-06-26 15:08:59 +03:00
|
|
|
bind -n ${mod}-A swap-pane -U
|
|
|
|
bind -n ${mod}-D swap-pane -D
|
2024-04-30 20:35:45 +03:00
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
2024-06-23 04:55:57 +03:00
|
|
|
bind -n ${mod}-a select-pane -L
|
|
|
|
bind -n ${mod}-d select-pane -R
|
|
|
|
bind -n ${mod}-w select-pane -U
|
|
|
|
bind -n ${mod}-s select-pane -D
|
2024-04-30 20:35:45 +03:00
|
|
|
|
2024-06-23 04:55:57 +03:00
|
|
|
bind -n ${mod}-c kill-pane
|
|
|
|
bind -n ${mod}-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}"
|
|
|
|
'';
|
|
|
|
}
|