]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Flesh out tmux configuration
authorMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 13 Sep 2018 11:49:56 +0000 (12:49 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 13 Sep 2018 11:49:56 +0000 (12:49 +0100)
tmux/.tmux.conf

index fb8ba84551aebd3413f6ca53b935c0a47e3fb1ab..50edc479a2e28861fb9249dae0cd7e5e4deccb3a 100644 (file)
@@ -1,3 +1,5 @@
+# Set vi mode
+set -g mode-keys vi
 set -g history-limit 10000
 
 
@@ -10,3 +12,81 @@ bind C-a send-prefix
 set -g default-terminal "screen-256color"
 
 set -s escape-time 0
+
+# Options from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
+# Better switching
+bind | split-window -h
+bind - split-window -v
+unbind '"'
+unbind %
+
+# Easier pane switching
+bind -n M-k select-pane -U
+bind -n M-j select-pane -D
+bind -n M-h select-pane -L
+bind -n M-l select-pane -R
+
+# Easy reloading of config
+bind r source-file ~/.tmux.conf
+
+# Mouse bindings. THIS IS AWESOME!
+set -g mouse on
+
+# Dont rename windows (allows setting mail for instance)
+set -g allow-rename off
+
+
+
+####################################
+# DESING ###########################
+# By /u/dothebarbwa on /r/unixporn #
+####################################
+
+# loud or quiet?
+set-option -g visual-activity off
+set-option -g visual-bell off
+set-option -g visual-silence off
+set-window-option -g monitor-activity off
+set-option -g bell-action none
+
+#  modes
+setw -g clock-mode-colour colour5
+setw -g mode-attr bold
+setw -g mode-fg colour7
+setw -g mode-bg colour8
+
+# panes
+set -g pane-border-bg colour8
+set -g pane-border-fg colour0
+set -g pane-active-border-bg colour0
+set -g pane-active-border-fg colour7
+
+# statusbar
+set -g status-position bottom
+set -g status-justify left
+set -g status-bg colour0
+set -g status-fg colour137
+set -g status-attr dim
+set -g status-left ''
+set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
+set -g status-right-length 50
+set -g status-left-length 20
+
+setw -g window-status-current-fg colour3
+setw -g window-status-current-bg colour8
+setw -g window-status-current-attr bold
+setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
+
+setw -g window-status-fg colour8
+setw -g window-status-bg colour7
+setw -g window-status-attr none
+setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
+
+setw -g window-status-bell-attr bold
+setw -g window-status-bell-fg colour255
+setw -g window-status-bell-bg colour1
+
+# messages
+set -g message-attr bold
+set -g message-fg colour3
+set -g message-bg colour0