Skip to content

Instantly share code, notes, and snippets.

@gabeguz
Created August 6, 2012 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabeguz/3278871 to your computer and use it in GitHub Desktop.
Save gabeguz/3278871 to your computer and use it in GitHub Desktop.
tmux config file
# $Id: n-marriott.conf,v 1.10 2009/10/25 21:45:26 nicm Exp $
#
# By Nicholas Marriott. Public domain.
# Default global options.
set -g status-bg green
set -g status-right "%H:%M %y-%b-%d"
set -g bell-action none
set -g lock-after-time 1800
# Default global window options.
setw -g remain-on-exit off
setw -g window-status-current-attr "underscore"
# Prefix key.
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Keys to switch session.
bind Q switchc -t0
bind W switchc -t1
bind E switchc -t2
# Other key bindings.
bind F1 selectw -t:10
bind F2 selectw -t:11
bind F3 selectw -t:12
bind F4 selectw -t:13
bind F5 selectw -t:14
bind F6 selectw -t:15
bind F7 selectw -t:16
bind F8 selectw -t:17
bind F9 selectw -t:18
bind F10 selectw -t:19
bind F11 selectw -t:20
bind F12 selectw -t:21
bind m setw monitor-activity
bind y setw force-width 81
bind u setw force-width 0
#bind -n F1 run-shell 'mpc toggle >/dev/null 2>&1'
#bind -n F2 run-shell 'mpc'
#bind -n F3 run-shell 'mpc prev >/dev/null 2>&1'
#bind -n F4 run-shell 'mpc next >/dev/null 2>&1'
#bind -n F5 run-shell 'mpc volume -5 >/dev/null 2>&1'
#bind -n F6 run-shell 'mpc volume +5 >/dev/null 2>&1'
# First session.
#new -d -s0 -nirssi 'exec ssh -t natalya exec sh ~/bin/tmux-start'
new -d -s0 -nroot 'exec sudo su -'
#setw -t0:0 monitor-activity on
setw -t0:0 aggressive-resize on
set -t0 status-bg green
neww -d -nelog 'exec tail -F /var/log/apache2/error.log /var/log/gamma/platform/default /var/log/gamma/platform/exception'
setw -t0:1 monitor-activity on
setw -t0:1 aggressive-resize on
neww -d -nalog 'exec tail -F /var/log/apache2/other_vhosts_access.log'
setw -t0:2 monitor-activity on
setw -t0:2 aggressive-resize on
neww -d -nmlog 'exec tail -F /var/log/mysql/mysql.log'
setw -t0:3 monitor-activity on
setw -t0:3 aggressive-resize on
neww -d -nmysql 'exec mysql -u root -pp@@sw0rdzH3r3!'
setw -t0:4 aggressive-resize on
neww -d
neww -d
neww -d
# Second session.
new -d -s1
set -t1 status-bg cyan
linkw -dk -t0 -s0:0
linkw -dk -t1 -s0:1
linkw -dk -t2 -s0:2
linkw -dk -t3 -s0:3
linkw -dk -t4 -s0:4
neww -d
neww -d
neww -d
# Third session.
new -d -s2
set -t2 status-bg yellow
linkw -dk -t0 -s0:0
linkw -dk -t1 -s0:1
linkw -dk -t2 -s0:2
linkw -dk -t3 -s0:3
linkw -dk -t4 -s0:4
neww -d
neww -d
neww -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment