X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmux%2F.tmux.conf;h=82d3cce018c86f927c96507d46f041fc75843390;hb=HEAD;hp=97849fecad45ff14b733db6ea807bc6a9a4c2968;hpb=f44c6b83383cd22f50fddadca3a4b0effaa12ed0;p=max%2Fdotfiles.git diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 97849fe..82d3cce 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,7 +1,7 @@ +# Set vi mode +set -g mode-keys vi set -g history-limit 10000 -set -g utf8 on -set-window-option -g utf8 on set -g default-command /bin/bash @@ -9,34 +9,80 @@ unbind C-b set -g prefix C-a bind C-a send-prefix -# COLOUR (based on Solarized dark) +set -g default-terminal "screen-256color" -# default statusbar colors -set-option -g status-bg black #base02 -set-option -g status-fg yellow #yellow -set-option -g status-attr default +set -s escape-time 0 -# default window title colors -set-window-option -g window-status-fg brightblue #base0 -set-window-option -g window-status-bg default -#set-window-option -g window-status-attr dim +# 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 % -# active window title colors -set-window-option -g window-status-current-fg brightred #orange -set-window-option -g window-status-current-bg default -#set-window-option -g window-status-current-attr bright +# 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 -# pane border -set-option -g pane-border-fg black #base02 -set-option -g pane-active-border-fg brightgreen #base01 +# Easy reloading of config +bind r source-file ~/.tmux.conf -# message text -set-option -g message-bg black #base02 -set-option -g message-fg brightred #orange +# Mouse bindings. THIS IS AWESOME! +set -g mouse on -# pane number display -set-option -g display-panes-active-colour blue #blue -set-option -g display-panes-colour brightred #orange +# Dont rename windows (allows setting mail for instance) +set -g allow-rename off -# clock -set-window-option -g clock-mode-colour green #green +## move x clipboard into tmux buffer +#bind C-p run "tmux set-buffer \"$(xclip -o)\"" +## move tmux copy buffer into x clipboard +#bind C-y run "tmux save-buffer - | xclip -i" + +#move wayland clipbord into tmux buffer +bind C-p run "tmux set-buffer \"$(wl-paste)\"" +# move tmux copy buffer into wayland clipboard +bind C-y run "tmux save-buffer - | wl-copy" + + + +#################################### +# 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-style bold,fg=colour7,bg=colour8 + +# panes +set -g pane-border-style bg=colour8,fg=colour0 +set -g pane-active-border-style bg=colour0,fg=colour7 + +# statusbar +set -g status-position bottom +set -g status-justify left +set -g status-style bg=colour0,fg=colour137,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-style fg=colour3,bg=colour8,bold +setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F ' + +setw -g window-status-style fg=colour8,bg=colour7,none +setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F ' + +setw -g window-status-bell-style fg=colour255,bg=colour1,bold + +# messages +set -g message-style fg=colour3,bg=colour0,bold