diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-05-21 14:41:07 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-05-21 14:41:07 +0100 |
commit | d769fec8d670ce37d476da3e31d6e68f9d43408c (patch) | |
tree | c0d75d394860f68c1835db74e453fad621ae479f /regress | |
parent | f1ce611345f5151f851aad69edaab3753113fcb9 (diff) | |
download | rtmux-d769fec8d670ce37d476da3e31d6e68f9d43408c.tar.gz rtmux-d769fec8d670ce37d476da3e31d6e68f9d43408c.tar.bz2 rtmux-d769fec8d670ce37d476da3e31d6e68f9d43408c.zip |
More configs.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/conf/58304907c117cab9898ea0b070bccde3.conf | 118 | ||||
-rw-r--r-- | regress/conf/d0040b2e097f1e3d31d78eed6ce8d461.conf | 108 |
2 files changed, 226 insertions, 0 deletions
diff --git a/regress/conf/58304907c117cab9898ea0b070bccde3.conf b/regress/conf/58304907c117cab9898ea0b070bccde3.conf new file mode 100644 index 00000000..c9ce3fa4 --- /dev/null +++ b/regress/conf/58304907c117cab9898ea0b070bccde3.conf @@ -0,0 +1,118 @@ +# +# Tureba's tmux.conf +# +# To use it, either: +# a) link ~/.tmux.conf to it; or +# b) create a ~/.tmux.conf that sources it. +# +# who: Arthur Nascimento <tureba@gmail.com> +# where: github.com/tureba/myconfigfiles +# + +# defaults +set -g default-shell /bin/zsh +set -g default-command zsh +# tmux sets screen/screen-256, but has no codes for italics +set -g default-terminal tmux-256color +# linux terminal doesn't need this, but xterm does +set -g terminal-overrides 'xterm*:smcup@:rmcup@,*256col*:colors=256,xterm*:XT' +# xterm-style function key sequences +setw -g xterm-keys on + +# 1, 2 and 3 are closer together than 0, 1 and 2 +set -g base-index 1 +set -g pane-base-index 1 + +# easier to type than C-b +set -g prefix C-a +set -g prefix2 C-b +unbind C-b +bind C-a send-prefix + +# for repeatable keys +set -g repeat-time 170 + +# status bar +set -g status-style fg=green,bg=colour234 +set -g status-right-style bg=colour236 +set -g status-right "#[bold,fg=blue][#[fg=default]#T#[fg=blue]]#[nobold,fg=default] | #[fg=yellow]%F %R" +set -g status-right-length 120 +set -g status-left-style bg=colour236,bright +set -g status-left "#[fg=blue][#[fg=default]#h#[fg=cyan]:#[fg=default]#S#[fg=blue]]" +set -g status-left-length 30 +setw -g window-status-style fg=green +setw -g window-status-format " #I#[nobold]:#W " +setw -g window-status-current-style fg=green,bright +setw -g window-status-current-format "#[fg=red][#[fg=default]#I:#W#[fg=red]]" +setw -g window-status-separator "|" +setw -g window-status-activity-style blink +setw -g window-status-bell-style blink +setw -g window-status-last-style bright + +# enable wm window titles +set -g set-titles on + +# auto window rename +setw -g automatic-rename on +# auto window resize +setw -g aggressive-resize on + +# mouse settings +set -g mouse on + +# var|bind \ cmd | vim | less | copy | zsh +# pane_in_mode | 0 | 0 | 1 | 0 +# mouse_any_flag | 1 | 0 | 0 | 0 +# alternate_on | 1 | 1 | 0 | 0 +# WheelUpPane | send -M | send Up | * | send Up (** or copy-mode -e) +# WheelDownPane | send -M | send Down | * | send Down +# * panes in copy mode have scroll handled by different bindings + +# ** cycle over shell history +#bind -T root WheelUpPane if -Ft= '#{mouse_any_flag}' 'send -Mt=' 'send -t= Up' + +# ** enter copy mode +bind -T root WheelUpPane if -Ft= '#{mouse_any_flag}' 'send -Mt=' 'if -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="' + +bind -T root WheelDownPane if -Ft= '#{mouse_any_flag}' 'send -Mt=' 'send -t= Down' + +# sensible v/h splits +unbind % +unbind '"' +bind | split-window -h +bind - split-window -v + +# hjkl pane traversal +bind -r h select-pane -L +bind -r j select-pane -D +bind -r k select-pane -U +bind -r l select-pane -R + +# window navigation +unbind p +bind -r [ previous-window +unbind n +bind -r ] next-window + +# Vi copypaste mode +setw -g mode-keys vi +bind C-c copy-mode +bind p paste-buffer +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-selection +bind -T copy-mode-vi V send-keys -X rectangle-toggle + +# toggle window activity monitoring +bind m setw monitor-activity + +# reload the configuration +bind r source-file ~/.tmux.conf + +# toggle synchronize-panes +bind S setw synchronize-panes + +# create a new window with exactly this command +bind C command-prompt "new-window 'exec %%'" + +# (toggle) mark this pane for easier joins and swaps +bind . select-pane -m diff --git a/regress/conf/d0040b2e097f1e3d31d78eed6ce8d461.conf b/regress/conf/d0040b2e097f1e3d31d78eed6ce8d461.conf new file mode 100644 index 00000000..3ae7444a --- /dev/null +++ b/regress/conf/d0040b2e097f1e3d31d78eed6ce8d461.conf @@ -0,0 +1,108 @@ +# Put the status bar on top +#set -g status-position "top" + +# Basic colours, safer for dumb terminals. +#set -g status-style "bg=white,fg=black" +#set -g status-right-style "bg=green,fg=black" +#set -g window-status-current-style "bg=yellow,fg=black" +#set -g message-style "bg=white,fg=black" +#set -g window-status-activity-style "fg=blue" +#set -g window-status-bell-style "fg=red" + +## Moar colours! Not recommended if attaching from dumber terminals with 8 or 16 colours. +#set -g default-terminal "tmux-256color" +# A more compatible XTERM var. +set -g default-terminal "screen-256color" +set -g message-style "bg=#485548 fg=#ffffff" +set -g pane-border-style "fg=#424954" +set -g pane-active-border-style "fg=#ffffff" +set -g status-style "bg=#424954 fg=#ffffff" +set -g status-right-style "bg=#303338 fg=colour87" +set -g window-status-current-style "bg=#303338" +set -g window-status-last-style "bg=#364146" +set -g window-status-format ' #I:#W#[fg=colour201]#F ' +set -g window-status-current-format ' #[fg=colour226]#I#[fg=#ffffff]:#[fg=colour119]#W#[fg=colour202]#F ' +set -g window-status-separator "" + +# Uncomment and reload settings for sanity in a console with 8 colours. +#set -g status-style "bg=white,fg=black" +#set -g window-status-last-style "bg=white" + +# Might help when graphical characters used for vertical and horizontal lines are drawn as x and q. +#set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@' + +# Count panes starting from 1. +set -g base-index 1 + +# With this you set the window name in the status line. +# Beware of outrageous prompts, such as the default one in RHEL 7. +set -g set-titles on +# Let status right consists of only the pane title (removes date and time). +# Usually shows current path. +set -g status-right ' #T ' +# Increase the default length of 40. +set -g status-right-length 80 + +# Scroll up with the mouse. +set -g mouse + +# Clipboard integration, use this in tandem with the recommended xterm settings. +set -g set-clipboard on +# Pass through modifier keys, xterm style. You'll want this in vim. +set -g xterm-keys on +# Reduce time to wait for Escape key. You'll want this for neovim. +set-option escape-time 40 +# Leave ESC alone... +#set-option -s escape-time 0 + +# New-style mouse scroll (>2.1) +bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M +bind -n WheelDownPane select-pane -t= \; send-keys -M + +# This is for scrolling up with the terminal using keys, but has issues... +#set -ga terminal-overrides ',xterm*:smcup@:rmcup@' + +# 10x more history. +set -g history-limit 20000 + +# Swap the default Control-b with Control-s which usually stops the output in a shell. +unbind C-b +set-option -g terminal-overrides "xterm-rightclick:krightclick=^[[29~" +set -g prefix C-s +bind C-s send-prefix + +# For renumbering windows when you get gaps in numbering. +bind R \ + move-window -r\; \ + display-message "Windows reordered..." + +# My shortcuts. +#bind-key -n C-S-t new-window # Doesn't work :-/ +bind-key -n C-t new-window +bind-key -n C-PgUp prev +bind-key -n C-PgDn next +#bind-key -n C-S-PgUp swap-window -t -1 # Doesn't work :-/ +#bind-key -n C-S-PgDn swap-window -t +1 # Doesn't work :-/ +bind-key -n C-S-Left swap-window -t -1 +bind-key -n C-S-Right swap-window -t +1 +bind-key -n M-` select-window -t 0 +bind-key -n M-1 select-window -t 1 +bind-key -n M-2 select-window -t 2 +bind-key -n M-3 select-window -t 3 +bind-key -n M-4 select-window -t 4 +bind-key -n M-5 select-window -t 5 +bind-key -n M-6 select-window -t 6 +bind-key -n M-7 select-window -t 7 +bind-key -n M-8 select-window -t 8 +bind-key -n M-9 select-window -t 9 +bind-key -n M-0 select-window -t 10 + +# switch panes without prefix using Alt-arrow +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +# join pane from inputted window (horizontally or vertically) +#bind-key @ command-prompt -p "join pane from:" "join-pane -s ':%%' -h" +bind-key @ command-prompt -p "join pane from:" "join-pane -s ':%%' -v" |