bundles/users: also deploy tmux config
This commit is contained in:
parent
d7ca23d57e
commit
810c2cfcf8
2 changed files with 43 additions and 0 deletions
39
bundles/users/files/tmux.conf
Normal file
39
bundles/users/files/tmux.conf
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
unbind r
|
||||||
|
# Reload with ctrl-r
|
||||||
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||||
|
|
||||||
|
bind C-a send-prefix # Pass on ctrl-a for other apps
|
||||||
|
|
||||||
|
# Status bar
|
||||||
|
set -g status on
|
||||||
|
set -g status-interval 10
|
||||||
|
set -g status-left '[tmux ${node.name}] '
|
||||||
|
set -g status-left-length ${len(node.name)+10}
|
||||||
|
set -g status-right " „#{pane_title}“ %Y-%m-%d %H:%M UTC"
|
||||||
|
|
||||||
|
# Numbering starts at 1
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
# Activity monitoring
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
set-option -g default-shell $SHELL
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
|
||||||
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
|
#### COLOUR (Solarized dark)
|
||||||
|
set-option -g status-bg black #base02
|
||||||
|
set-option -g status-fg yellow #yellow
|
||||||
|
set-option -g status-style default
|
||||||
|
set-window-option -g window-status-style fg=brightblue,bg=default
|
||||||
|
set-window-option -g window-status-activity-style fg=green,bg=default,none
|
||||||
|
set-window-option -g window-status-current-style fg=brightred,bg=default,none
|
||||||
|
set-option -g pane-border-style fg=black
|
||||||
|
set-option -g pane-active-border-style fg=brightgreen
|
||||||
|
set-option -g message-style bg=black,fg=brightred
|
||||||
|
set-option -g display-panes-active-colour blue #blue
|
||||||
|
set-option -g display-panes-colour brightred #orange
|
||||||
|
set-window-option -g clock-mode-colour green #green
|
|
@ -51,6 +51,10 @@ for username, attrs in node.metadata['users'].items():
|
||||||
else:
|
else:
|
||||||
files[home + '/.ssh/authorized_keys'] = {'delete': True}
|
files[home + '/.ssh/authorized_keys'] = {'delete': True}
|
||||||
|
|
||||||
|
files[home + '/.tmux.conf'] = {
|
||||||
|
'content_type': 'mako',
|
||||||
|
'source': 'tmux.conf',
|
||||||
|
}
|
||||||
files[home + '/.config/fish/config.fish'] = {
|
files[home + '/.config/fish/config.fish'] = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue