dots/.config/tmux/tmux.conf

63 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2021-08-23 17:06:33 +02:00
# General
2020-05-08 02:22:49 +02:00
2023-12-08 00:03:40 +01:00
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
2020-05-08 02:22:49 +02:00
set -g base-index 1
setw -g monitor-activity on
set -g status-keys vi
setw -g mode-keys vi
set -g history-limit 10000
2021-11-28 17:53:17 +01:00
set-window-option -g automatic-rename on
set-option -g set-titles on
2022-01-07 02:51:02 +01:00
set-option -sg escape-time 10
2021-11-28 17:53:17 +01:00
# Minimal status bar
set -g status-left ''
set -g status-right ''
2023-06-14 22:21:34 +02:00
bind r source-file ~/.config/tmux/tmux.conf # reload tmux conf
2020-05-07 14:31:57 +02:00
2021-08-23 17:06:33 +02:00
# Keybindings
2020-05-07 14:31:57 +02:00
2021-08-23 17:06:33 +02:00
# Split
2020-05-07 16:11:54 +02:00
unbind v
2020-05-07 14:31:57 +02:00
unbind s
unbind % # vsplit
unbind '"' # hsplit
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
2021-08-23 17:06:33 +02:00
# Split navigate
2020-05-07 16:11:54 +02:00
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
2021-08-23 17:06:33 +02:00
# Split resize
2020-05-08 02:22:49 +02:00
bind -r H resize-pane -L 4
bind -r J resize-pane -D 4
bind -r K resize-pane -U 4
bind -r L resize-pane -R 4
2020-05-07 16:11:54 +02:00
2021-08-23 17:06:33 +02:00
# Theming
2020-05-07 16:11:54 +02:00
2020-05-08 02:22:49 +02:00
set -g pane-border-style fg=#222222
set -g pane-active-border-style fg=#222222
set -g display-panes-active-colour blue
2021-08-23 17:06:33 +02:00
set -g default-terminal "tmux-256color"
2021-11-28 17:53:17 +01:00
set -g message-style bg=#111111,fg=#aaaaaa
set -g status-interval 1
# statusbar
set -g status-position bottom
set -g window-status-separator ''
set -g status-style 'bg=#111111 fg=#aaaaaa dim'
set -g status-left ''
set -g status-right '#[fg=black,bg=#aaaaaa] #(task status:pending count) #(echo "☐") '
setw -g window-status-current-style 'fg=black bg=#aaaaaa'
setw -g window-status-current-format ' #I:#W#F '
setw -g window-status-style 'bg=#111111 fg=#aaaaaa'
setw -g window-status-format ' #I:#W#F '
setw -g window-status-activity-style 'fg=#aaaaaa bg=#111111'