aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-05-23 21:49:29 +1000
committeronefang2019-05-23 21:49:29 +1000
commit46c9f672a4a8f5de090d291e8359b3c7d6502370 (patch)
treefa4dc7c69930b4cd857b85855c524a7636a373ad
parentA bit more installation doco. (diff)
downloadopensim-SC_OLD-46c9f672a4a8f5de090d291e8359b3c7d6502370.zip
opensim-SC_OLD-46c9f672a4a8f5de090d291e8359b3c7d6502370.tar.gz
opensim-SC_OLD-46c9f672a4a8f5de090d291e8359b3c7d6502370.tar.bz2
opensim-SC_OLD-46c9f672a4a8f5de090d291e8359b3c7d6502370.tar.xz
Update the tmux config.
I do wish they would stop changing config options.
-rw-r--r--scripts/install/opensim.tmux.conf85
1 files changed, 65 insertions, 20 deletions
diff --git a/scripts/install/opensim.tmux.conf b/scripts/install/opensim.tmux.conf
index ea342a2..a5088aa 100644
--- a/scripts/install/opensim.tmux.conf
+++ b/scripts/install/opensim.tmux.conf
@@ -1,5 +1,6 @@
1# Tmux has a habit of changing what these options are for each version, so this is a bit of a mess. 1# Tmux has a habit of changing what these options are for each version, so this is a bit of a mess.
2 2
3# Screen compatibility, change the command key. And rebind the prefix sending command.
3set-option -g prefix C-a 4set-option -g prefix C-a
4unbind-key C-b 5unbind-key C-b
5bind-key C-a send-prefix 6bind-key C-a send-prefix
@@ -7,46 +8,90 @@ bind-key C-a send-prefix
7# r reloads the configuration, handy 8# r reloads the configuration, handy
8bind r source-file ~/.tmux.conf 9bind r source-file ~/.tmux.conf
9 10
10unbind % # Remove default binding since we’re replacing them. 11bind R clear-history
12
13# More sane pane gain. B-)
14unbind % # Remove default binding since we’re replacing them.
15unbind '"'
11bind | split-window -h 16bind | split-window -h
12bind - split-window -v 17bind - split-window -v
13 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
14set-option -g bell-action any 27set-option -g bell-action any
15set-option -g bell-on-alert on 28set-option -g bell-on-alert on
16 29
30# Not actually documented what the limit is, but there is one.
17set-option -g history-limit 100000 31set-option -g history-limit 100000
18 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.
19# These three wont work under Ubuntu 16.04. 37# These three wont work under Ubuntu 16.04.
20set-option -g mouse-resize-pane on 38##set-option -g mouse-resize-pane on
21set-option -g mouse-select-pane on 39##set-option -g mouse-select-pane on
22set-option -g mouse-select-window on 40##set-option -g mouse-select-window on
23set-option -g mouse-utf8 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
24 50
25#set-option -g set-remain-on-exit on 51# How to set the title of the terminal window.
26set-option -g set-titles on 52set-option -g set-titles on
27set-option -g set-titles-string '#W' 53set-option -g set-titles-string '#W' # Default is "#S:#I:#W - "#T""
28 54
29set-option -g status-interval 1 55set-option -g status-interval 1 # Redraw status line every second, for the clock.
30set-option -g status-justify centre 56set-option -g status-justify centre # Window list in the middle.
31set-option -g status-utf8 on 57##set-option -g status-utf8 on
32 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.
33set-option -g status-left-length 80 74set-option -g status-left-length 80
34set-option -g status-left '[#H #S #F]' 75#set-option -g status-left '[#H #S #F]'
76set-option -g status-left '#H [#S:#I.#P]#F'
35set-option -g status-right-length 80 77set-option -g status-right-length 80
36set-option -g status-right '%F #(uptime)'<-----># &F is ISO date, uptime starts with the current time, and ends with the load average. B-) 78set-option -g status-right '%F #(uptime)'<-----># &F is ISO date, uptime starts with the current time, and ends with the load average. B-)
37 79
38set-option -g visual-activity on 80# Set window notifications
39set-option -g visual-content on 81set-option -g visual-activity on # Show status message for activity in monitor-activity windows.
40set-option -g visual-silence on 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.
41 84
42set-option -gw clock-mode-style 24 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.
43# This wont work under Ubuntu 16.04. 86set-option -gw clock-mode-style 24 # We are using the uptime clock anyway, so this is pointless.
44set-option -gw mode-mouse on
45# Instead do this (also defaults to turning on the above three mouse things) -
46#set-option -gw mouse on
47 87
48# Highlight active window 88# Highlight active window
49set-option -gw window-status-current-bg red 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'
50 92
51# Set window notifications 93# Set window notifications
52set-option -gw monitor-activity on 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"