Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12297417
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/core/userland-software/files/tmux.conf b/roles/core/userland-software/files/tmux.conf
new file mode 100644
index 0000000..58edec9
--- /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
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# 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.
+# </auto-generated>
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# 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
index e54c080..2a32f1d 100644
--- a/roles/core/userland-software/init.sls
+++ b/roles/core/userland-software/init.sls
@@ -1,29 +1,40 @@
# -------------------------------------------------------------
# Salt — Provision software needed by other core roles
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-09
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
# Shells
# -------------------------------------------------------------
shells:
pkg:
- installed
- pkgs:
- bash
- zsh
{% if grains['os'] != 'FreeBSD' %}
- tcsh
{% endif %}
{{ dirs.share }}/zsh/site-functions/_pm:
file.managed:
# 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
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Oct 22, 11:56 (22 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3088321
Default Alt Text
(3 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment