diff --git a/roles/core/userland-software/files/tmux.conf b/roles/core/userland-software/files/tmux.conf new file mode 100644 --- /dev/null +++ b/roles/core/userland-software/files/tmux.conf @@ -0,0 +1,65 @@ +# ------------------------------------------------------------- +# tmux minimal configuration +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Project: Nasqueron +# Created: 2018-03-08 +# Author : Sébastien Santoro aka Dereckson +# License: Trivial work, not eligible to copyright +# Source file: roles/core/userland-software/files/tmux.conf +# ------------------------------------------------------------- +# +# +# This file is managed by our rOPS SaltStack repository. +# +# Changes to this file may cause incorrect behavior +# and will be lost if the state is redeployed. +# +# ------------------------------------------------------------- + +# ------------------------------------------------------------- +# General settings +# +# ᚾ identifies Nasqueron servers +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +set -g prefix C-a +set -g status-right '⫻ #h — %Y-%m-%d %H:%M ⫻ ᚾ ' + +# ------------------------------------------------------------- +# Resize shorcut keys +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +bind < resize-pane -L 1 +bind > resize-pane -R 1 +bind - resize-pane -D 1 +bind + resize-pane -U 1 + +# ------------------------------------------------------------- +# Mouse mode support +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +# Toggle mouse on with ^B m +bind m \ + set -g mode-mouse on \;\ + set -g mouse-resize-pane on \;\ + set -g mouse-select-pane on \;\ + set -g mouse-select-window on \;\ + display 'Mouse mode ON' + +# Toggle mouse off with ^B M +bind M \ + set -g mode-mouse off \;\ + set -g mouse-resize-pane off \;\ + set -g mouse-select-pane off \;\ + set -g mouse-select-window off \;\ + display 'Mouse mode OFF' + +# ------------------------------------------------------------- +# Colors +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +set -g status-bg colour241 +set -g status-fg colour7 + +set -g pane-border-fg colour241 +set -g pane-active-border-fg colour238 diff --git a/roles/core/userland-software/init.sls b/roles/core/userland-software/init.sls --- a/roles/core/userland-software/init.sls +++ b/roles/core/userland-software/init.sls @@ -27,3 +27,14 @@ # At commit 683d331 - 2017-11-05 - source: https://raw.githubusercontent.com/Angelmmiguel/pm/master/zsh/_pm - source_hash: deea33968be713cdbd8385d3a72df2dd09c444e42499531893133f009f0ce0ea + +# ------------------------------------------------------------- +# tmux +# ------------------------------------------------------------- + +tmux: + pkg.installed + +/root/.tmux.conf: + file.managed: + - source: salt://roles/core/userland-software/files/tmux.conf