102 lines
2.7 KiB
Plaintext
102 lines
2.7 KiB
Plaintext
# Configured by Rob Muhlestein (rwxrob.live)
|
|
# This file is copyright free (public domain).
|
|
|
|
# change default meta key to same as screen
|
|
unbind C-b
|
|
unbind C-a
|
|
set -g prefix C-a
|
|
|
|
# form vim/tmux d/y buffer sync
|
|
set -g focus-events
|
|
|
|
# use a different prefix for nested
|
|
bind-key -n C-y send-prefix
|
|
|
|
# add double-tap meta key to toggle last window
|
|
bind-key C-a last-window
|
|
|
|
# pane colors and display
|
|
|
|
# create more intuitive split key combos (same as modern screen)
|
|
# -c '#{pane_current_path}' ensures new split is in `pwd`
|
|
unbind |
|
|
bind | split-window -h -c '#{pane_current_path}'
|
|
bind '\' split-window -h -c '#{pane_current_path}'
|
|
bind 'C-\' split-window -h -c '#{pane_current_path}'
|
|
unbind -
|
|
bind - split-window -v -c '#{pane_current_path}'
|
|
unbind _
|
|
bind _ split-window -v -c '#{pane_current_path}'
|
|
|
|
# vi for copy mode
|
|
setw -g mode-keys vi
|
|
|
|
# vi for command status
|
|
set -g status-keys vi
|
|
|
|
# vi keys to resize
|
|
bind -r C-k resize-pane -U 1
|
|
bind -r C-j resize-pane -D 1
|
|
bind -r C-h resize-pane -L 1
|
|
bind -r C-l resize-pane -R 1
|
|
|
|
# vi keys to navigate panes
|
|
bind -r k select-pane -U
|
|
bind -r j select-pane -D
|
|
bind -r h select-pane -L
|
|
bind -r l select-pane -R
|
|
|
|
# avoid cursor movement messing with resize
|
|
set -g repeat-time 200
|
|
|
|
# colors, clock, and stuff
|
|
#set -g default-terminal "xterm-256color" # works, but oh so wrong
|
|
#set -ga terminal-overrides ",xterm-256color*:Tc"
|
|
set -g default-terminal "screen-256color"
|
|
#set -g clock-mode-style 12
|
|
setw -g clock-mode-colour cyan
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# die, die, die (just be careful, right next to C-c)
|
|
|
|
# color the pane borders nearly invisible
|
|
# (when not using hacked tmux without them)
|
|
set -g pane-border-style "fg=#202020,bg=#202020"
|
|
set -g pane-active-border-style "fg=#202020,bg=#202020"
|
|
|
|
# color of the window selection background
|
|
set -g mode-style "bg=black"
|
|
|
|
# very unique Mac bug
|
|
if-shell "type 'reattach-to-user-namespace' >/dev/null" "set -g default-command 'reattach-to-user-namespace -l $SHELL'"
|
|
|
|
# reload configuration
|
|
bind -r r source-file ~/.tmux.conf
|
|
|
|
set -g status-style "bg=#202021,fg=#665c54"
|
|
set -g status-position top
|
|
set -g status-interval 1
|
|
set -g status-right ""
|
|
set -g status-left ""
|
|
set -g status-right-style "fg=#928374"
|
|
|
|
if-shell -b '[ -z $SWAYSOCK ]' 'set -g status-right " #(pomo)"'
|
|
set -g status-right "#(tmux_timew)"
|
|
#set -g status-left-length 78
|
|
#set -g status-left-style "fg=#928374,bold,reverse"
|
|
#set -g status-left-style "fg=brightwhite"
|
|
#set -g status-left "#(head -1 ~/.status) "
|
|
#set -g status-right-length 50
|
|
#set -g status-right "%a, %b %-e, %Y, %-l:%M:%S%p %Z%0z"
|
|
#set -g status-right-style "fg=#928374,bold"
|
|
#set -g window-status-format ""
|
|
#set -g window-status-current-format ""
|
|
|
|
set -g message-style "fg=red"
|
|
|
|
# disable status
|
|
#set -g status off
|
|
set -g status on
|
|
|