example_tmux.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Example .tmux.conf
  3. #
  4. # By Nicholas Marriott. Public domain.
  5. #
  6. # Some tweaks to the status line
  7. set -g status-bg green
  8. set -g status-right "%H:%M"
  9. set -g window-status-current-attr "underscore"
  10. # No bells at all
  11. set -g bell-action none
  12. # Lock after 15 minutes
  13. set -g lock-after-time 1800
  14. # Keep windows around after they exit
  15. set -g remain-on-exit on
  16. # Turn on xterm-keys so that additional function keys get escape sequences
  17. set -g xterm-keys on
  18. # Change the prefix key to C-a
  19. set -g prefix C-a
  20. unbind C-b
  21. bind C-a send-prefix
  22. # Turn the mouse on, but without copy mode dragging
  23. set -g mouse on
  24. unbind -n MouseDrag1Pane
  25. unbind -temacs-copy MouseDrag1Pane
  26. # Some extra key bindings to select higher numbered windows
  27. bind F1 selectw -t:10
  28. bind F2 selectw -t:11
  29. bind F3 selectw -t:12
  30. bind F4 selectw -t:13
  31. bind F5 selectw -t:14
  32. bind F6 selectw -t:15
  33. bind F7 selectw -t:16
  34. bind F8 selectw -t:17
  35. bind F9 selectw -t:18
  36. bind F10 selectw -t:19
  37. bind F11 selectw -t:20
  38. bind F12 selectw -t:21
  39. # Keys to toggle monitoring activity in a window, and synchronize-panes
  40. bind m set monitor-activity
  41. bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
  42. # Keys to hide and show a window name from the status line
  43. bind '-' set window-status-format '#I'\; set window-status-current-format '#I'
  44. bind '+' set window-status-format '#I:#W#F'\; set window-status-current-format '#I:#W#F'
  45. # Create a single default session
  46. new -d -s0 -nirssi 'exec irssi'
  47. set -t0:0 monitor-activity on
  48. set -t0:0 aggressive-resize on
  49. neww -d -ntodo 'exec emacs ~/TODO'
  50. setw -t0:1 aggressive-resize on
  51. neww -d -nmutt 'exec mutt'
  52. setw -t0:2 aggressive-resize on
  53. neww -d
  54. neww -d
  55. neww -d