Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
4.1 kB
2
Indexable
Never

# remap prefix from 'C-b' to 'Alt-q'
unbind C-b
set-option -g prefix M-q
bind-key M-q send-prefix

tmux_conf_new_pane_retain_current_path=false
tmux_conf_new_window_retain_current_path=false
set -sg escape-time 5 

unbind -T copy-mode MouseDragEnd1Pane

# Fix Colors
#set -g default-terminal "screen.xterm-256color"
#set -as terminal-features ",xterm-256color:RGB"
#set-option -a terminal-overrides ",alacritty:RGB"
# set -s default-terminal 'tmux-256color'
set -ga terminal-overrides ",xterm-256color:Tc"

set -g monitor-activity on

set -g visual-activity on

set -g base-index 1
set -g pane-base-index 1
set -g xterm-keys on

bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D

#bind-key -n F2 new-window
bind-key -n M-n new-window
#bind-key -n F3 previous-window
bind-key -n C-p previous-window
#bind-key -n F4 next-window
bind-key -n C-n next-window
#bind-key -n F5 split-window -v
bind-key -n M-j split-window -v
#bind-key -n F6 split-window -h
bind-key -n M-h split-window -h
bind-key -n F8 command-prompt -I "#W" "rename-window '%%'"
bind-key -n F7 command-prompt "find-window '%%'"
bind-key -n F10 setw synchronize-panes
bind-key -n F11 resize-pane -Z
bind-key -n F12 kill-pane

bind-key -n S-Left resize-pane -L
bind-key -n S-Right resize-pane -R
bind-key -n S-Up resize-pane -U
bind-key -n S-Down resize-pane -D

set -g status-interval 60
set -g status-right "#(uptime -p) "

set -g status-style "fg=colour246,bg=colour235"
set -g pane-border-style fg=colour237
set -g pane-active-border-style fg=colour242
set-window-option -g window-status-current-style fg=colour166,bright
set -g mouse on

bind r source-file ~/.tmux.conf \; display "Tmux Reloaded"
bind-key -n M-r source-file ~/.tmux.conf \; display "Tmux Reloaded"

#########
# Settings
########
# Start window and pane indices at 1.
set -g base-index 1
set -g pane-base-index 0

# Length of tmux status line
set -g status-left-length 30
set -g status-right-length 150

set-option -g status "on"

# Default statusbar color
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1

# Default window title colors
set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1

# Default window with an activity alert
set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3

# Active window title colors
set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1

# Set active pane border color
set-option -g pane-active-border-style fg=colour214

# Set inactive pane border color
set-option -g pane-border-style fg=colour239

# Message info
set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1

# Writing commands inactive
set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1

# Pane number display
set-option -g display-panes-active-colour colour1 #fg2
set-option -g display-panes-colour colour237 #bg1

# Clock
set-window-option -g clock-mode-colour colour109 #blue

# Bell
set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg

set-option -g status-left "\
#[fg=colour7, bg=colour241]#{?client_prefix,#[bg=colour167],} ❐ #S \
#[fg=colour241, bg=colour237]#{?client_prefix,#[fg=colour167],}#{?window_zoomed_flag, 🔍,}"

set-option -g status-right "\
#[fg=colour214, bg=colour237] \
#[fg=colour237, bg=colour214] #(~/dotfiles/tmux_scripts/music.sh) \
#[fg=colour223, bg=colour237] #(~/dotfiles/tmux_scripts/uptime.sh) \
#[fg=colour246, bg=colour237]  %b %d '%y\
#[fg=colour109]  %H:%M \
#[fg=colour248, bg=colour239]"

set-window-option -g window-status-current-format "\
#[fg=colour237, bg=colour214]\
#[fg=colour239, bg=colour214] #I* \
#[fg=colour239, bg=colour214, bold] #W \
#[fg=colour214, bg=colour237]"

set-window-option -g window-status-format "\
#[fg=colour237,bg=colour239,noitalics]\
#[fg=colour223,bg=colour239] #I \
#[fg=colour223, bg=colour239] #W \
#[fg=colour239, bg=colour237]"

# Set the history limit so we get lots of scrollback.
setw -g history-limit 50000000
Leave a Comment