Files
dotfiles/tmux/tmux.conf

98 lines
2.5 KiB
Plaintext
Raw Normal View History

2022-07-02 12:29:30 +02:00
set-option -g default-command "${SHELL}"
2022-06-30 22:04:43 +02:00
# This *has* to be set to something with `screen-`, do not set this bindly
# to $TERM, e.g. "alacritty"!
2022-07-02 12:29:30 +02:00
set-option -g default-terminal "screen-256color"
2018-01-29 11:36:35 +01:00
2022-07-02 12:29:30 +02:00
set-option -g set-titles on
set-option -g set-titles-string '#S'
2022-07-02 12:30:30 +02:00
set-option -g automatic-rename
2014-09-30 19:55:51 +02:00
2022-07-02 12:30:30 +02:00
set-option -g escape-time 0
set-option -g aggressive-resize on
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g mouse on
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g mode-keys vi
2014-09-30 19:55:51 +02:00
set-option -g renumber-windows on
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g bell-action any
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g history-limit 50000
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g base-index 1
2022-07-02 12:30:30 +02:00
set-option -g pane-base-index 1
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g status-position bottom
set-option -g status-justify left
2014-09-22 02:03:22 +02:00
2022-06-30 22:04:43 +02:00
# https://wiki.archlinux.org/title/tmux#256_colors
2022-07-02 12:30:30 +02:00
set-option -g -a terminal-overrides ",alacritty:Tc"
2022-06-30 22:04:43 +02:00
2022-07-02 12:30:30 +02:00
set-option -g pane-border-status bottom
set-option -g pane-border-format ''
set-option -g -q pane-border-lines double;
set-option -g -q pane-border-indicators colour;
2022-06-30 21:44:37 +02:00
2022-07-02 12:30:30 +02:00
set-option -g pane-border-style "fg=#555555"
set-option -g pane-active-border-style "fg=#e5b567"
2014-09-22 02:03:22 +02:00
2022-06-30 21:29:42 +02:00
set-option -g status-style bg=default
2017-08-09 21:54:10 +02:00
2022-07-02 12:30:30 +02:00
set-option -g window-status-format ' #I: #W #F '
set-option -g window-status-current-format ' #I: #W #F '
set-option -g window-status-current-style "bg=#e5b567,fg=black"
2014-09-22 02:03:22 +02:00
2022-07-02 12:30:30 +02:00
set-option -g monitor-activity on
set-option -g visual-activity off
set-option -g window-status-activity-style "bg=#ff7777,fg=black"
2014-09-22 02:03:22 +02:00
2022-07-02 12:30:30 +02:00
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{pane_current_command}'
2014-09-22 02:03:22 +02:00
2022-07-02 12:30:30 +02:00
set-option -g window-status-separator ' '
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g status-left " #[bg=#6c99bb,fg=#2e2e2e] #{session_name} #[bg=default] "
set-option -g status-right "#[bg=#CCCCCC,fg=#555555] #{host} #[bg=default] "
set-option -g status-left-length 100
2014-09-22 02:03:22 +02:00
2022-07-02 12:29:30 +02:00
set-option -g message-style "bg=#CCCCCC,fg=#555555"
2020-12-10 03:56:02 +01:00
2022-07-02 12:30:51 +02:00
# Use C-a as the prefix
set-option -g prefix C-a
unbind C-b
bind C-a send-prefix
unbind C-j
bind-key k confirm kill-window
bind-key K confirm kill-server
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
2014-09-22 02:03:22 +02:00
# vertical = | in this case
unbind %
unbind '"'
2015-09-25 16:25:48 +02:00
bind-key s split-window -v -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
2015-09-25 20:22:53 +02:00
bind-key -n C-h previous-window
bind-key -n C-l next-window
2015-09-25 16:25:48 +02:00
bind-key c new-window -c "#{pane_current_path}"
2014-09-30 19:55:51 +02:00
bind-key -n S-down new-window
bind-key -n S-left prev
bind-key -n S-right next
bind-key -n C-F1 command-prompt "split-window -h 'exec man %%'"
bind-key -n C-F2 split-window -h "exec htop"
bind-key -n C-F3 set-option status
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf sourced"
2017-09-01 09:53:09 +02:00
bind P paste-buffer