34 lines
840 B
Bash
34 lines
840 B
Bash
set-option -g default-shell /bin/zsh
|
|
|
|
# remap prefix to Control + a
|
|
set -g prefix C-a
|
|
unbind C-b
|
|
bind C-a send-prefix
|
|
|
|
# VIM mode
|
|
set-window-option -g mode-keys vi
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
|
|
# split panes using | and -
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# quick pane cycling
|
|
unbind ^A
|
|
bind ^A select-pane -t :.+
|
|
|
|
# tabs
|
|
setw -g window-status-format "#[fg=white]#[bg=blue] [#I]#[bg=blue]#[fg=white] #W "
|
|
setw -g window-status-current-format "#[bg=white]#[fg=black] [#I]#[fg=black]#[bg=white] #W "
|
|
|
|
# status bar
|
|
set-option -g status-position top
|
|
set -g status-fg white
|
|
set -g status-bg blue
|
|
set -g status-left ''
|
|
set -g status-right-length 63
|
|
set -g status-right 'Battery:#(acpi | cut -d ',' -f 2) | %a %Y-%m-%d %H:%M'
|