Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3778589
D1400.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D1400.diff
View Options
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
+# -------------------------------------------------------------
+#
+# <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
--- 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 05:41 (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264036
Default Alt Text
D1400.diff (2 KB)
Attached To
Mode
D1400: Install tmux in core role
Attached
Detach File
Event Timeline
Log In to Comment