# ~/.tmux.conf # Informations {{{ # File : ~/.tmux.conf # Purpose: Setup file for the terminal multiplexer called "tmux" # Author : Christian 'strcat' Schneider # NOTE 1 : Lines starting with an '#' are comments. # NOTE 2 : Used and tested with OpenBSD 4.8, Debian 6.0 and tmux 1.4 # Set the command for new windows to "zsh" set -g default-command zsh # control cmus bind -n F7 run-shell 'cmus-remote --pause >/dev/null 2>&1' bind -n F10 run-shell 'cmus-remote --next >/dev/null 2>&1' bind -n F11 run-shell 'cmus-remote --prev >/dev/null 2>&1' bind -n F12 run-shell 'cmus-remote --shuffle >/dev/null 2>&1' # Create a "np: " or "np: nothing" - Line ("nor-playing.sh" is # available at ). set -g status-right "#[fg=red]#(now-playing.sh)" # GNU Emacs keys set-window-option -g mode-keys emacs set-option -g status-keys emacs # no one needs a mouse set-window-option -g mode-mouse off # "I' == current window index # 'H' == Hostname # 'F' == current window flag # 'P' == current pane index # 'S' == Session name # 'T' == current window title # 'W' == current window name # '#' == a literal "#" # Where appropriate, special character sequences may be prefixed with a # number to specify the maximum length, in this line "#10W'. set-window-option -g window-status-format '#I#F #10W ' setw -g window-status-current-format '#I#F #10W' # ↑/↓ and F8/F9 ѕwitch window bind-key -n C-up prev bind-key -n C-down next bind-key -n F9 next bind-key -n F8 prev # sometimes needed.. maybe.. setw -g xterm-keys on # open a man page in new window bind / command-prompt "split-window -v 'exec man %%'" # scrollback buffer n lines set -g history-limit 5000 # listen for activity on all windows set -g bell-action any # enable wm window titles set -g set-titles on # wm window title string (uses statusbar variables) set -g set-titles-string '#H: #W' # default statusbar colors set -g status-fg cyan set -g status-bg default set -g status-attr default set -g status-left "#[fg=green]host: (#[default]#[fg=yellow]#H#[default]#[fg=green]) | " set -g status-left-length 40 set -g status-right-length 50 set -g status-right "" # default window title colors set-option -g status-utf8 on set-option -g visual-activity on set-window-option -g monitor-activity on # active window title colors set-window-option -g window-status-current-fg yellow set-window-option -g window-status-current-bg default # Set the prefix to ^A. set -g prefix C-a unbind C-b bind C-a send-prefix # C-a a switch to last-window unbind ^A bind ^A last-window # New session called ``Worksation'' new -s Workstation # Mutt neww -t 1 -nMutt mutt # Slrn neww -t 2 -nSlrn 'slrn -C -n --kill-log /home/dope/.slang/KILL --spool' # Rtorrent neww -t 3 -nrtorrent zsh # Cmus neww -t 4 -nCmus cmus # Irssi neww -t 9 -nIrssi irssi # ... and so on.. # Turn monior-activity for rtorrent, cmus and irssi *off* set-window-option -t:3 monitor-activity off set-window-option -t:4 monitor-activity off set-window-option -t:9 monitor-activity off # Set a space-separated string containing a list of envi‐ ronment # variables to be copied into the session environ‐ ment when a new # session is created or an existing session is attached set -g update-environment "DISPLAY WINDOWID SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION GNOME_KEYRING_PID GNOME_KEYRING_SOCKET"