Last active
September 22, 2024 17:06
-
-
Save ianmaddox/5a9c20d3161f0ee7949a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix the control character | |
unbind C-b | |
set -g prefix C-a | |
set -g mouse on | |
unbind '"' | |
unbind % | |
unbind | | |
# Enable pane border status to display labels at the top | |
set-option -g pane-border-status top | |
# Set the pane border format to display the pane title | |
set-option -g pane-border-format "#{pane_title}" | |
# Make the screen splitting more sane | |
# | splits vertically down the middle | |
bind | split-window -h | |
# _ and - split horizontally | |
bind - split-window -v | |
bind _ split-window -v | |
# + splits into four panes | |
bind + run "tmux split-window -h; tmux split-window -v; tmux select-pane -L; tmux split-window -v; tmux select-pane -U" | |
bind C-a last-window | |
bind x break-pane | |
bind Q list-panes -F "#D #{pane_tty}" | |
# Shortcut for synchronizing panes | |
bind -n M-z resize-pane -Z | |
bind z setw synchronize-panes | |
bind -n M-k resize-pane -U 15 | |
bind -n M-j resize-pane -D 15 | |
bind -n M-h resize-pane -L 15 | |
bind -n M-l resize-pane -R 15 | |
# Reload key | |
bind r source-file ~/.tmux.conf | |
set -g history-limit 100000 | |
# start window indexing at one instead of zero because 0 is on the right of the KB | |
set -g base-index 1 | |
# statusbar -------------------------------------------------------------- | |
set -g display-time 2000 | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# default statusbar colors | |
set -g status-fg white | |
set -g status-bg black | |
#set -g status-attr default | |
# default window title colors | |
#set-window-option -g window-status-fg cyan | |
#set-window-option -g window-status-bg default | |
#set-window-option -g window-status-attr dim | |
# active window title colors | |
#set-window-option -g window-status-current-fg white | |
#set-window-option -g window-status-current-bg default | |
#set-window-option -g window-status-current-attr bright | |
# command/message line colors | |
#set -g message-fg white | |
#set -g message-bg black | |
#set -g message-attr bright | |
# center align the window list | |
set -g status-justify left | |
# show some useful stats but only when tmux is started | |
# outside of Xorg, otherwise dwm statusbar shows these already | |
set -g status-left '#[fg=green](#S)#[default]' | |
set -g status-right '#[fg=green] #(whoami)@#H#[default] #[fg=blue]%H:%M#[default]' | |
if '[ -z "" ]' 'set -g status-left "[#[fg=green] #H #[default]]"' | |
if '[ -z "" ]' 'set -g status-right "[ #[fg=magenta]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] ][ #[fg=cyan,bright]%a %Y-%m-%d %H:%M #[default]]"' | |
if-shell 'test -e ~/bin/watts' 'set -g status-right "[ #[fg=colour45]#(temps cpu min)#[default]/#[fg=colour231]#(temps cpu avg)#[default]/#[fg=colour9]#(temps cpu max)#[default] ][ #[fg=colour227]#(watts)#[default] ][ #[fg=colour213]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] ][ #[fg=cyan,bright]%a %Y-%m-%d %H:%M #[default]]"' | |
if '[ -z "" ]' 'set -g status-right-length 80' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment