Last active
October 16, 2024 14:28
-
-
Save cqsd/edf8c6e1b514962a117a8207975e5157 to your computer and use it in GitHub Desktop.
tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TMUX_COLOR_ACTIVE=green | |
TMUX_COLOR_INFO=blue | |
TMUX_COLOR_FG=black | |
set-option -g default-terminal screen-256color | |
set -g history-limit 50000 # that oughta do it | |
set -g display-time 4000 | |
set -gs escape-time 10 | |
set -g pane-border-style fg=brightblack | |
set -g pane-active-border-style fg=$TMUX_COLOR_ACTIVE | |
set -g status-justify left | |
set -g status-style fg=white,bg=brightblack | |
set -g window-style 'fg=default,bg=default' | |
set -g window-status-style fg=brightwhite | |
set -g window-status-style default | |
set -g window-status-current-style fg=$TMUX_COLOR_ACTIVE,bg=default,none | |
# set -g window-status-current-format "#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_ACTIVE] #W(#I) " | |
set -g window-status-current-format "#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_ACTIVE] #I:#{b:pane_current_path} " | |
set -g window-status-format ' #I:#{b:pane_current_path} ' | |
set -g status-position top | |
set -g status-left-style fg="#cccccc" # bright enough tbh | |
set -g status-left "#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] #S #[fg=default,bg=default]" | |
set -g status-left-length 20 | |
set -g status-right-length 70 | |
# set -g status-right "#(hostname)#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] %D %H:%M #(battery -pt|cut -d' ' -f1)#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] " | |
# set -g status-right "#(tmux-aqi)#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] %D %H:%M #(battery -pt|cut -d' ' -f1)#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] " | |
set -g status-right "#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] %D %H:%M #(battery -pt|cut -d' ' -f1)#[fg=$TMUX_COLOR_FG,bg=$TMUX_COLOR_INFO] " | |
# set-option -g status-interval 5 | |
# set-option -g automatic-rename on | |
# set-option -g automatic-rename-format ' #{b:pane_current_path}(#I) ' | |
set -g base-index 1 | |
set -g renumber-windows on | |
set -g pane-base-index 1 | |
set -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
set -g allow-rename off | |
set -g automatic-rename off | |
bind c new-window -n scratch # hack to set default name | |
bind H split-window -v -c "#{pane_current_path}" | |
bind V split-window -h -c "#{pane_current_path}" | |
# I've never, ever deliberately used a preset layout, but I've accidentally | |
# applied them many times... | |
unbind Space | |
bind C-Space next-layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment