diff options
author | onefang | 2019-05-23 21:49:29 +1000 |
---|---|---|
committer | onefang | 2019-05-23 21:49:29 +1000 |
commit | 46c9f672a4a8f5de090d291e8359b3c7d6502370 (patch) | |
tree | fa4dc7c69930b4cd857b85855c524a7636a373ad /scripts/install | |
parent | A bit more installation doco. (diff) | |
download | opensim-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.
Diffstat (limited to 'scripts/install')
-rw-r--r-- | scripts/install/opensim.tmux.conf | 85 |
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. | ||
3 | set-option -g prefix C-a | 4 | set-option -g prefix C-a |
4 | unbind-key C-b | 5 | unbind-key C-b |
5 | bind-key C-a send-prefix | 6 | bind-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 |
8 | bind r source-file ~/.tmux.conf | 9 | bind r source-file ~/.tmux.conf |
9 | 10 | ||
10 | unbind % # Remove default binding since we’re replacing them. | 11 | bind R clear-history |
12 | |||
13 | # More sane pane gain. B-) | ||
14 | unbind % # Remove default binding since we’re replacing them. | ||
15 | unbind '"' | ||
11 | bind | split-window -h | 16 | bind | split-window -h |
12 | bind - split-window -v | 17 | bind - 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 | |||
14 | set-option -g bell-action any | 27 | set-option -g bell-action any |
15 | set-option -g bell-on-alert on | 28 | set-option -g bell-on-alert on |
16 | 29 | ||
30 | # Not actually documented what the limit is, but there is one. | ||
17 | set-option -g history-limit 100000 | 31 | set-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. |
20 | set-option -g mouse-resize-pane on | 38 | ##set-option -g mouse-resize-pane on |
21 | set-option -g mouse-select-pane on | 39 | ##set-option -g mouse-select-pane on |
22 | set-option -g mouse-select-window on | 40 | ##set-option -g mouse-select-window on |
23 | set-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) - | ||
44 | set-option -g mouse on | ||
45 | # Or this. sigh | ||
46 | #set-option -g mouse | ||
47 | ##set-option -g mouse-utf8 off # Defaults to on. | ||
48 | |||
49 | set-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. |
26 | set-option -g set-titles on | 52 | set-option -g set-titles on |
27 | set-option -g set-titles-string '#W' | 53 | set-option -g set-titles-string '#W' # Default is "#S:#I:#W - "#T"" |
28 | 54 | ||
29 | set-option -g status-interval 1 | 55 | set-option -g status-interval 1 # Redraw status line every second, for the clock. |
30 | set-option -g status-justify centre | 56 | set-option -g status-justify centre # Window list in the middle. |
31 | set-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. | ||
33 | set-option -g status-left-length 80 | 74 | set-option -g status-left-length 80 |
34 | set-option -g status-left '[#H #S #F]' | 75 | #set-option -g status-left '[#H #S #F]' |
76 | set-option -g status-left '#H [#S:#I.#P]#F' | ||
35 | set-option -g status-right-length 80 | 77 | set-option -g status-right-length 80 |
36 | set-option -g status-right '%F #(uptime)'<-----># &F is ISO date, uptime starts with the current time, and ends with the load average. B-) | 78 | set-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 | ||
38 | set-option -g visual-activity on | 80 | # Set window notifications |
39 | set-option -g visual-content on | 81 | set-option -g visual-activity on # Show status message for activity in monitor-activity windows. |
40 | set-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. |
83 | set-option -g visual-silence on # Show status message for silence in monitor-silence windows. Based on a set interval. | ||
41 | 84 | ||
42 | set-option -gw clock-mode-style 24 | 85 | set-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. | 86 | set-option -gw clock-mode-style 24 # We are using the uptime clock anyway, so this is pointless. |
44 | set-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 |
49 | set-option -gw window-status-current-bg red | 89 | set-option -gw window-status-current-bg red |
90 | set-option -gw window-status-current-format '[#I:#W]' | ||
91 | set-option -gw window-status-format '[#I:#W]#F' | ||
50 | 92 | ||
51 | # Set window notifications | 93 | # Set window notifications |
52 | set-option -gw monitor-activity on | 94 | set-option -gw monitor-activity on # Bell on activity. |
95 | |||
96 | # We want 256 colours in our terminal. | ||
97 | set-option -g default-terminal "screen-256color" | ||