aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/install/opensim.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/install/opensim.tmux.conf97
1 files changed, 97 insertions, 0 deletions
diff --git a/scripts/install/opensim.tmux.conf b/scripts/install/opensim.tmux.conf
new file mode 100644
index 0000000..84e0c21
--- /dev/null
+++ b/scripts/install/opensim.tmux.conf
@@ -0,0 +1,97 @@
1# Tmux has a habit of changing what these options are for each version, so this is a bit of a mess.
2
3# Screen compatibility, change the command key. And rebind the prefix sending command.
4set-option -g prefix C-a
5unbind-key C-b
6bind-key C-a send-prefix
7
8# r reloads the configuration, handy
9bind r source-file ~/.tmux.conf
10
11bind R clear-history
12
13# More sane pane gain. B-)
14unbind % # Remove default binding since we’re replacing them.
15unbind '"'
16bind | split-window -h
17bind - split-window -v
18
19# set-options -g global, -s server, -w window, otherwise a session option.
20# -a appends a string to the existing option.
21# -u unsets an option.
22# -o prevents setting an aption if it is already set.
23# -q shut up info messages.
24
25# SESSION OPTIONS
26
27set-option -g bell-action any
28set-option -g bell-on-alert on
29
30# Not actually documented what the limit is, but there is one.
31set-option -g history-limit 100000
32
33# All this mouse stuff is unreliable in UTF8 mode. At least on roxterm.
34# Also keep in mind the terminal specs mouse report limit of 256 characters, being less than my typical terminal width.
35# Hmm, still wont pass mouse through like the docs say they will.
36# Ah, mc needs "mc -x". Though once again, watch that right edge on huge terminals.
37# These three wont work under Ubuntu 16.04.
38##set-option -g mouse-resize-pane on
39##set-option -g mouse-select-pane on
40##set-option -g mouse-select-window on
41# This wont work under Ubuntu 16.04.
42##set-option -g mode-mouse on # on - mouse does copy mode stuff; copy-mode - mouse can't go into copy mode, but does stuff once in there; off - mouse is unmolested.
43# Instead do this (also defaults to turning on the above three mouse things) -
44set-option -g mouse on
45# Or this. sigh
46#set-option -g mouse
47##set-option -g mouse-utf8 off # Defaults to on.
48
49set-option -g set-remain-on-exit on
50
51# How to set the title of the terminal window.
52set-option -g set-titles on
53set-option -g set-titles-string '#W' # Default is "#S:#I:#W - "#T""
54
55set-option -g status-interval 1 # Redraw status line every second, for the clock.
56set-option -g status-justify centre # Window list in the middle.
57##set-option -g status-utf8 on
58
59# Character pair Replaced with
60 #(shell-command) First line of the command's output
61 #[attributes] Colour or attribute change
62 #H Hostname of local host (not FDQN)
63 #h Hostname of local host without the domain name
64 #F Current window flag
65 #I Current window index
66 #D Current pane unique identifier
67 #P Current pane index
68 #S Session name
69 #T Current pane title
70 #W Current window name
71 ## A literal ‘#’
72
73# Yes, my terminal really is bigger than 160 characters.
74set-option -g status-left-length 42
75#set-option -g status-left '[#H #S #F]'
76set-option -g status-left '#H [#S:#I.#P]#F'
77set-option -g status-right-length 64
78set-option -g status-right "%F #(uptime | cut -d ' ' -f 2-2,10-)" # %F is ISO date, uptime starts with the current time, and ends with the load average. B-)
79
80# Set window notifications
81set-option -g visual-activity on # Show status message for activity in monitor-activity windows.
82#set-option -g visual-content on # Show status message for content in monitor-content windows. Based on a fnmatch(3) string.
83set-option -g visual-silence on # Show status message for silence in monitor-silence windows. Based on a set interval.
84
85set-option -gw alternate-screen off # Don't save the original screen before starting tmux, may also allow use of the terminals original scrollback buffer.
86set-option -gw clock-mode-style 24 # We are using the uptime clock anyway, so this is pointless.
87
88# Highlight active window
89set-option -gw window-status-current-bg red
90set-option -gw window-status-current-format '[#I:#W]'
91set-option -gw window-status-format '[#I:#W]#F'
92
93# Set window notifications
94set-option -gw monitor-activity on # Bell on activity.
95
96# We want 256 colours in our terminal.
97set-option -g default-terminal "screen-256color"