Skip to content

Instantly share code, notes, and snippets.

@suryadana
Created May 3, 2018 09:14
Show Gist options
  • Save suryadana/1b44deafdd70c4b940d0336319efd20a to your computer and use it in GitHub Desktop.
Save suryadana/1b44deafdd70c4b940d0336319efd20a to your computer and use it in GitHub Desktop.
My tmux configure
# change key binding from C-b to Emacs style C-x
unbind C-b
set -g prefix C-x
bind C-x send-prefix
# interface
#------------
# pane
#------------
set -g pane-border-fg black
set -g pane-active-border-fg blue
set -g mouse on
# Copy to system clipboard
set-option -s set-clipboard off
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
#------------
# tabs
#------------
setw -g window-status-format "#[fg=white]#[bg=blue] #I #[bg=blue]#[fg=white] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=white] *#I #[fg=white,bold]#[bg=cyan] [#W] "
#------------
# status bar
#------------
set -g status-fg white
set -g status-bg blue
set -g status-right-length 60
set -g status-right 'Learning is stupid | ♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'
#------
# bind key
#------
bind-key h split-window -h
bind-key v split-window -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment