2 # Purpose: configuration file for tmux
3 # Authors: grml-team (grml.org), (c) Michael Prokop <mika at grml.org>,
4 # Sebastian Boehm <sebastian at sometimesfood.org>
5 # Bernhard Tittelbach <xro at realraum.at>
6 # Bug-Reports: see http://grml.org/bugs/
7 # License: This file is licensed under the GPL v2.
8 ################################################################################
10 ### screen-like keybindings
13 bind-key a send-prefix
14 bind-key C-a last-window
16 bind-key space next-window
17 bind-key C-space next-window
18 bind-key K confirm-before kill-pane
19 bind-key \ confirm-before kill-session
20 #bind-key C-h previous-window
22 ### join the last active pane to the currently active window
23 bind-key j join-pane -s !
26 bind-key h next-layout
27 bind-key ^? previous-window
28 bind-key ^H previous-window
29 bind-key tab select-pane -t :.+
30 ### useful custom keybindings
31 bind-key | command-prompt -p "exec:" "split-window -h '%%'"
32 bind-key - command-prompt -p "exec:" "split-window -v '%%'"
36 set -g default-terminal "screen-256color"
37 set -g display-panes-time 3000
38 set -g mouse-select-pane off
39 set -g visual-activity on
42 ### set status line appearance
44 set -g status-fg white
45 set -g status-bg black
47 set -g status-left-length 28
48 ### status-left: @hostname:sessionname
49 set -g status-left "#[fg=white]@#h#[fg=red]:#S#[fg=white] |"
50 ### status-left: username@hostname:sessionname
51 #set -g status-left "#[fg=blue]#(echo ${USER})#[fg=white]@#h#[fg=red]:#S#[fg=white] |"
53 ### status-right: Date and Time
54 set -g status-right-length 16
55 set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M'
56 ### status-right: Time
57 #set -g status-right-length 6
58 #set -g status-right "#[fg=yellow]%H:%M"
60 set-window-option -g window-status-fg blue
61 set-window-option -g window-status-bg black
62 set-window-option -g window-status-current-attr bold