Skip to content

Instantly share code, notes, and snippets.

@emidln
Created July 5, 2018 14:05
Show Gist options
  • Save emidln/bda3849f8af481edb6329c9f36c2750c to your computer and use it in GitHub Desktop.
Save emidln/bda3849f8af481edb6329c9f36c2750c to your computer and use it in GitHub Desktop.
set-option -g default-command "/usr/bin/bash -il"
# new prefix
unbind C-b
set -g prefix M-Space
# quick back
bind M-Space last-window
# vi-style keybindings
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
unbind M-n
bind M-n previous-window
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key X kill-pane
bind-key h select-pane -L
bind-key l select-pane -R
bind-key j select-pane -D
bind-key k select-pane -U
bind-key R clear-history
# THEME
set -g status-bg white
set -g status-fg black
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[bg=white](#S) #(whoami)@#h #[default]'
set -g status-right '#[bg=white]🔊: #(volume_level.sh) | %H:%M %A %Y-%m-%d#[default]'
set -s escape-time 0
# if we use a ton of scrollback, you might need to clear the scrollback buffer via `M-Space R`
set -g history-limit 99999999
bind-key R clear-history
# toggle audio
bind-key m run 'pactl set-sink-mute 0 toggle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment