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
|
|
|
|
|
|
|
|
|
|
unbind C-b
|
|
|
|
|
set -g prefix C-a
|
|
|
|
|
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
|
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
bind C-p run "tmux set-buffer \"$(wm_paste)\""
|
|
|
|
|
# move tmux copy buffer into wayland clipboard
|
|
|
|
|
bind C-y run "tmux save-buffer - | wm_copy"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
#### COLOUR (Solarized light)
|
|
|
|
|
|
|
|
|
|
# default statusbar colors
|
|
|
|
|
set-option -g status-style fg=yellow,bg=white #yellow and base2
|
|
|
|
|
|
|
|
|
|
# default window title colors
|
|
|
|
|
set-window-option -g window-status-style fg=brightyellow,bg=default #base0 and default
|
|
|
|
|
#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
|
|
|
|
|
set-option -g pane-border-style fg=white #base2
|
|
|
|
|
set-option -g pane-active-border-style fg=brightcyan #base1
|
|
|
|
|
|
|
|
|
|
# message text
|
|
|
|
|
set-option -g message-style fg=brightred,bg=white #orange and base2
|
|
|
|
|
|
|
|
|
|
# pane number display
|
|
|
|
|
set-option -g display-panes-active-colour blue #blue
|
|
|
|
|
set-option -g display-panes-colour brightred #orange
|
|
|
|
|
|
|
|
|
|
# clock
|
|
|
|
|
set-window-option -g clock-mode-colour green #green
|
|
|
|
|
|
|
|
|
|
# bell
|
|
|
|
|
set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
|
2024-10-03 16:34:48 +01:00
|
|
|
|
|
|
|
|
# Set hyperlink support
|
|
|
|
|
set -ga terminal-features "*:hyperlinks"
|