Commit: 9a5222bae6eb86b4b9abf6e032abf9d012e3973d Parent: 421e714c4a333e8b4c4b86545fbe70a9dd97ac3f Author: 0x766F6964 Date: Thu, 3 Dec 2020 23:31:20 -0700 add tmux conf Diffstat:
| M | .kshrc | | | 3 | ++- |
| A | .tmux.conf | | | 56 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 58 insertions(+), 1 deletion(-)
diff --git a/.kshrc b/.kshrc @@ -37,9 +37,10 @@ fi alias c=clear alias ll='ls -lh' alias mkdir='mkdir -p' +alias mvi='mpv --profile=image' alias ncmpcpp='tput smkx && ncmpcpp' alias page='mupdf -C E6D0B3' -alias mvi='mpv --profile=image' +alias tmux='tmux -2u' # managing dotfiles alias rice='git --git-dir=~/.dotfiles --work-tree=~' diff --git a/.tmux.conf b/.tmux.conf @@ -0,0 +1,56 @@ +unbind C-b + +set -g prefix C-a +setw -g aggressive-resize on +set -g display-panes-time 10000 +setw -g mode-keys vi + +set -g default-terminal "screen-256color" +set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set -ga terminal-overrides ',st-256-color:Tc' + +bind a send-prefix +bind R source-file ~/.tmux.conf \; display-message "config loaded" + +bind m command-prompt -p "man:" "split-window -h 'man %%'" + +bind Escape copy-mode +bind C-h previous-window +bind C-l next-window + +bind h select-pane -L +bind k select-pane -U +bind j select-pane -D +bind l select-pane -R + +bind J resize-pane -D 3 +bind K resize-pane -U 3 +bind H resize-pane -L 3 +bind L resize-pane -R 3 + +bind v split-window -h +bind s split-window -v + +bind ^k confirm kill-pane + +set -g base-index 1 +set -g renumber-windows on + +setw -g status-position top +setw -g window-status-format ' [#I: #W #F] ' +setw -g window-status-current-format ' [#W #F] ' +setw -g window-status-current-style "fg=blue" + +setw -g message-style "fg=#ffffff bold" + +set -g pane-border-style "fg=#999999" +set -g pane-active-border-style "fg=blue" +set -g display-panes-colour "white" +set -g display-panes-active-colour "black" + +set -g status-justify left +set -g status-bg black +set -g status-fg "#666666" +set -g status-right '' +set -g status-left '' +