initial commit
This commit is contained in:
		
						commit
						3e8518c055
					
				| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					plugins
 | 
				
			||||||
 | 
					resurrect
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					[submodule "plugins/tpm"]
 | 
				
			||||||
 | 
						path = plugins/tpm
 | 
				
			||||||
 | 
						url = https://github.com/tmux-plugins/tmux-resurrect
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					## Notes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					`tmux.conf` reads the colour settings file, `tmux.colours.conf`, if it exists.
 | 
				
			||||||
 | 
					One of the available `tmux.colours-*` can be renamed, symlinked to or whatever.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,19 @@
 | 
				
			||||||
 | 
					set -g display-panes-active-colour colour15
 | 
				
			||||||
 | 
					set -g display-panes-colour colour7
 | 
				
			||||||
 | 
					set -g message-command-style fg=colour15,bold,bg=colour0
 | 
				
			||||||
 | 
					set -g message-style fg=colour7,bold,bg=colour0
 | 
				
			||||||
 | 
					set -g status-style fg=colour7,bg=colour0
 | 
				
			||||||
 | 
					set -g status-left-style fg=colour15
 | 
				
			||||||
 | 
					set -g status-left " #S #[fg=colour7] "
 | 
				
			||||||
 | 
					set -g status-right "#[fg=colour9]#{?client_readonly,READ ONLY ,}#[fg=colour7]#{?client_prefix,prefix,#{pane_mode}} #[fg=colour7]%H:%M #[fg=colour11]#{=21:pane_title} #{?#{==:#{continuum_status},off},#[fg=colour9]Continuum OFF,#[fg=colour7]✓} "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g window-status-current-style fg=colour11
 | 
				
			||||||
 | 
					set -g window-status-style fg=colour7
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g window-status-current-format "#[fg=colour7]● #[fg=colour11,bold]#W#[fg=colour7,none] ●"
 | 
				
			||||||
 | 
					set -g window-status-format "#{?window_last_flag,#[fg=colour11],}  #W  "
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g pane-border-style fg=colour0,bg=terminal
 | 
				
			||||||
 | 
					set -g pane-active-border-style fg=colour0,bg=colour0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set-window-option -g clock-mode-colour colour8
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,22 @@
 | 
				
			||||||
 | 
					set -g display-panes-active-colour "#55ff55"
 | 
				
			||||||
 | 
					set -g display-panes-colour "#005500"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g pane-border-style fg=colour0,bg=terminal
 | 
				
			||||||
 | 
					set -g pane-active-border-style fg="#717171",bg=terminal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g window-status-current-style fg="#55ff55"
 | 
				
			||||||
 | 
					set -g window-status-style fg="#005500"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g window-status-current-format '#[fg="#009d00"]->#[fg="#73ff55",bold]#W#[fg="#009d00",none]  '
 | 
				
			||||||
 | 
					# why next line no work?
 | 
				
			||||||
 | 
					# set -g window-status-format '#{?window_last_flag,#[fg="#005500],}  #W  '
 | 
				
			||||||
 | 
					set -g window-status-format '#{?window_last_flag,#[fg=colour28],}  #W  '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g status-style fg="#009d00",bg="#1d1d1d"
 | 
				
			||||||
 | 
					set -g status-left ' #[fg="#005500"]#S#[fg="#009d00"] '
 | 
				
			||||||
 | 
					set -g status-right '#[fg=colour9]#{?client_readonly,READ ONLY ,}#[fg=colour121,bold]#{?client_prefix,prefix,#{pane_mode}} #[fg=colour2]%H:%M #[fg=colour10]#{=21:pane_title} #{?#{==:#{continuum_status},off},#[fg=colour9]Continuum OFF,#[fg=colour2]✓} '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g message-command-style fg="#0b0b0b",bold,bg="#005500"
 | 
				
			||||||
 | 
					set -g message-style fg="#55ff55",bold
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set-window-option -g clock-mode-colour "#009d00"
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					tmux.colours-full.conf
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,97 @@
 | 
				
			||||||
 | 
					set -g activity-action other
 | 
				
			||||||
 | 
					set -g assume-paste-time 1
 | 
				
			||||||
 | 
					set -g base-index 1
 | 
				
			||||||
 | 
					set -g bell-action any
 | 
				
			||||||
 | 
					set -g default-command ""
 | 
				
			||||||
 | 
					set -g default-shell "/bin/zsh"
 | 
				
			||||||
 | 
					set -g destroy-unattached off
 | 
				
			||||||
 | 
					set -g detach-on-destroy on
 | 
				
			||||||
 | 
					set -g display-panes-time 1000
 | 
				
			||||||
 | 
					set -g display-time 3000
 | 
				
			||||||
 | 
					set -g history-limit 2000
 | 
				
			||||||
 | 
					set -g key-table "root"
 | 
				
			||||||
 | 
					set -g lock-after-time 0
 | 
				
			||||||
 | 
					set -g lock-command "lock -np"
 | 
				
			||||||
 | 
					set -g mouse off
 | 
				
			||||||
 | 
					set -g prefix C-b
 | 
				
			||||||
 | 
					set -g prefix2 None
 | 
				
			||||||
 | 
					set -g renumber-windows off
 | 
				
			||||||
 | 
					set -g repeat-time 500
 | 
				
			||||||
 | 
					set -g set-titles off
 | 
				
			||||||
 | 
					set -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
 | 
				
			||||||
 | 
					set -g silence-action other
 | 
				
			||||||
 | 
					set -g status on
 | 
				
			||||||
 | 
					set -g status-position bottom
 | 
				
			||||||
 | 
					set -g status-interval 5
 | 
				
			||||||
 | 
					set -g status-justify left
 | 
				
			||||||
 | 
					set -g status-keys vi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g status-left-length 25
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g status-right-length 45
 | 
				
			||||||
 | 
					set -g status-right-style default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g window-status-separator ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g mode-keys vi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -ga update-environment[0] "DISPLAY"
 | 
				
			||||||
 | 
					set -ga update-environment[1] "SSH_ASKPASS"
 | 
				
			||||||
 | 
					set -ga update-environment[2] "SSH_AUTH_SOCK"
 | 
				
			||||||
 | 
					set -ga update-environment[3] "SSH_AGENT_PID"
 | 
				
			||||||
 | 
					set -ga update-environment[4] "SSH_CONNECTION"
 | 
				
			||||||
 | 
					set -ga update-environment[5] "WINDOWID"
 | 
				
			||||||
 | 
					set -ga update-environment[6] "XAUTHORITY"
 | 
				
			||||||
 | 
					set -g visual-activity off
 | 
				
			||||||
 | 
					set -g visual-bell off
 | 
				
			||||||
 | 
					set -g visual-silence off
 | 
				
			||||||
 | 
					set -g word-separators " -_@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# enable true color support
 | 
				
			||||||
 | 
					set -g default-terminal "tmux-256color"
 | 
				
			||||||
 | 
					set -ga terminal-overrides ",*256col*:Tc"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# set-option -g default-shell "/usr/bin/fish"
 | 
				
			||||||
 | 
					set-option -g default-shell "/usr/bin/zsh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# hide status bar for single windows
 | 
				
			||||||
 | 
					# https://www.reddit.com/r/tmux/comments/6lwb07/is_it_possible_to_hide_the_status_bar_in_only_a/dpzr5d7
 | 
				
			||||||
 | 
					# if -F "#{==:#{session_windows},1}" "set status off" "set status on"
 | 
				
			||||||
 | 
					# set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set status off" "set status on"'
 | 
				
			||||||
 | 
					# set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set status off" "set status on"'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Control + F1 toggles status
 | 
				
			||||||
 | 
					bind-key -n C-F1 set-option status
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# open splits/windows in current directory
 | 
				
			||||||
 | 
					# https://coderwall.com/p/jpsa7q/tmux-windows-and-pane-split-s-on-current-directory
 | 
				
			||||||
 | 
					bind-key c new-window -c "#{pane_current_path}"
 | 
				
			||||||
 | 
					bind-key % split-window -h -c "#{pane_current_path}"
 | 
				
			||||||
 | 
					bind-key '"' split-window -v -c "#{pane_current_path}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# load colour configuration from colours file
 | 
				
			||||||
 | 
					source-file ~/.config/tmux/tmux.colours.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Tmux Plugin Manager
 | 
				
			||||||
 | 
					# https://github.com/tmux-plugins/tpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# List of plugins
 | 
				
			||||||
 | 
					set -g @plugin 'tmux-plugins/tpm'
 | 
				
			||||||
 | 
					set -g @plugin 'tmux-plugins/tmux-sensible'
 | 
				
			||||||
 | 
					set -g @plugin 'tmux-plugins/tmux-resurrect'
 | 
				
			||||||
 | 
					set -g @plugin 'tmux-plugins/tmux-continuum'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -g @resurrect-capture-pane-contents 'on'
 | 
				
			||||||
 | 
					set -g @resurrect-strategy-vim 'session'
 | 
				
			||||||
 | 
					set -g @resurrect-strategy-nvim 'session'
 | 
				
			||||||
 | 
					set -g @resurrect-save-shell-history 'off'
 | 
				
			||||||
 | 
					set -g @continuum-restore 'on'
 | 
				
			||||||
 | 
					set -g @continuum-save-interval '10'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Other examples:
 | 
				
			||||||
 | 
					# set -g @plugin 'github_username/plugin_name'
 | 
				
			||||||
 | 
					# set -g @plugin 'git@github.com/user/plugin'
 | 
				
			||||||
 | 
					# set -g @plugin 'git@bitbucket.com/user/plugin'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
 | 
				
			||||||
 | 
					run '~/.tmux/plugins/tpm/tpm'
 | 
				
			||||||
		Loading…
	
		Reference in New Issue