dotfiles/home/dot_config/tmux/tmux.conf

100 lines
2.6 KiB
Text
Raw Normal View History

2024-09-28 20:55:48 +01:00
# Set vi mode
set -g mode-keys vi
set -g history-limit 10000
set -g default-command $SHELL
2025-09-10 13:54:02 +01:00
unbind C-b
set -g prefix C-a
2024-09-28 20:55:48 +01:00
bind C-a send-prefix
2024-10-10 09:02:25 +01:00
set -g default-terminal "$TERM"
set -ga terminal-overrides ",$TERM:Tc"
2024-09-28 20:55:48 +01:00
set -s escape-time 0
# Options from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# Better switching
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Easier pane switching
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind -n M-h select-pane -L
bind -n M-l select-pane -R
# Easy reloading of config
2025-09-10 13:54:02 +01:00
bind r source-file ~/.config/tmux/tmux.conf
2024-09-28 20:55:48 +01:00
# Mouse bindings. THIS IS AWESOME!
set -g mouse on
# Dont rename windows (allows setting mail for instance)
set -g allow-rename off
## move x clipboard into tmux buffer
#bind C-p run "tmux set-buffer \"$(xclip -o)\""
## move tmux copy buffer into x clipboard
#bind C-y run "tmux save-buffer - | xclip -i"
#move wayland clipbord into tmux buffer
2025-09-09 14:10:07 +01:00
bind C-p run "tmux set-buffer \"$(wl-paste)\""
2024-09-28 20:55:48 +01:00
# move tmux copy buffer into wayland clipboard
2025-09-09 14:10:07 +01:00
bind C-y run "tmux save-buffer - | wl-copy"
2024-09-28 20:55:48 +01:00
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
2025-09-09 14:10:07 +01:00
#### COLOUR (Solarized dark)
2024-09-28 20:55:48 +01:00
2025-09-09 14:48:13 +01:00
set -g status-bg "color238"
2024-09-28 20:55:48 +01:00
# default statusbar colors
2025-09-09 14:10:07 +01:00
set-option -g status-style fg=yellow,bg=black #yellow and base02
2024-09-28 20:55:48 +01:00
# default window title colors
2025-09-09 14:10:07 +01:00
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default
2024-09-28 20:55:48 +01:00
#set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default
#set-window-option -g window-status-current-style bright
# pane border
2025-09-09 14:48:13 +01:00
set-option -g pane-border-style fg=black #base04
set-option -g pane-active-border-style fg=orange #base02
2024-09-28 20:55:48 +01:00
# message text
2025-09-09 14:10:07 +01:00
set-option -g message-style fg=brightred,bg=black #orange and base01
2024-09-28 20:55:48 +01:00
# pane number display
2025-09-09 14:10:07 +01:00
set-option -g display-panes-active-colour brightred #orange
set-option -g display-panes-colour blue #blue
2024-09-28 20:55:48 +01:00
# clock
set-window-option -g clock-mode-colour green #green
# bell
2025-09-09 14:10:07 +01:00
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
# Set hyperlink support
set -ga terminal-features "*:hyperlinks"
2025-09-10 12:07:22 +01:00
2025-09-10 13:54:02 +01:00
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left ' #[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=white,bg=default]%H:%M:%S #[default] #[fg=blue]%Y-%m-%d '
2025-09-24 09:02:43 +01:00
set -g status-position top