lmariscal

.tmux.conf

Dec 1st, 2016
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.83 KB | None | 0 0
  1. ###############################################################################
  2. #    Load:
  3. #     * the stock byobu profile
  4. #     * any windows
  5. #     * and the local byoburc (instead of .screenrc)
  6. #    Used at startup but not profile refresh
  7. #
  8. #    Copyright (C) 2009-2011 Canonical Ltd.
  9. #
  10. #    Authors: Dustin Kirkland <[email protected]>
  11. #
  12. #    This program is free software: you can redistribute it and/or modify
  13. #    it under the terms of the GNU General Public License as published by
  14. #    the Free Software Foundation, version 3 of the License.
  15. #
  16. #    This program is distributed in the hope that it will be useful,
  17. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. #    GNU General Public License for more details.
  20. #
  21. #    You should have received a copy of the GNU General Public License
  22. #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  23. ###############################################################################
  24.  
  25. source-file $BYOBU_CONFIG_DIR/color.tmux
  26. source-file $BYOBU_CONFIG_DIR/datetime.tmux
  27. source-file $BYOBU_CONFIG_DIR/profile.tmux
  28. source-file $BYOBU_CONFIG_DIR/keybindings.tmux
  29. #source-file $BYOBU_CONFIG_DIR/windows.tmux
  30. source-file $BYOBU_CONFIG_DIR/.tmux.conf
  31.  
  32. # smart pane switching with awareness of vim splits
  33. bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
  34. bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
  35. bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
  36. bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
  37. bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
  38.  
  39. # designed to work well in light mode or dark mode
  40. #
  41. # copy-and-paste into your tmux.conf or source it like so:
  42. #
  43. #   source-file path/to/tmux-pencilcolors.conf
  44. #
  45. # statusline
  46. set -g status-bg green # transparent
  47. set -g status-fg white
  48. ##set -g status-attr default
  49.  
  50. # default window title colors
  51. setw -g window-status-fg blue
  52. setw -g window-status-bg default
  53. setw -g window-status-attr dim
  54.  
  55. # active window title colors
  56. setw -g window-status-current-fg brightred
  57. setw -g window-status-current-bg default
  58. setw -g window-status-current-attr bright
  59.  
  60. # bell alerted window color
  61. setw -g window-status-bell-bg red
  62. setw -g window-status-bell-fg white
  63. setw -g window-status-bell-attr bright
  64.  
  65. # content alerted color
  66. setw -g window-status-content-bg blue
  67. setw -g window-status-content-fg white
  68. setw -g window-status-content-attr bright
  69. setw -g window-status-activity-bg blue
  70. setw -g window-status-activity-fg white
  71. setw -g window-status-activity-attr bright
  72.  
  73. # pane borders
  74. set -g pane-border-fg white
  75. set -g pane-border-bg default
  76. set -g pane-active-border-fg brightblack
  77. set -g pane-active-border-bg default
  78.  
  79. # command line
  80. set -g message-fg default
  81. set -g message-bg default
  82. set -g message-attr bright
  83.  
  84. # options
  85. setw -g window-status-format "#[fg=colour214]#[bg=colour234] #I #[bg=colour235]#[fg=colour230] #W "
  86. setw -g window-status-current-format "#[fg=colour214]#[bg=colour234] #I #[bg=colour230]#[fg=colour235,bold] #W "
  87. set -g status-utf8 on
  88. set -g status on
  89. setw -g mode-keys vi
  90.  
  91. # left status
  92. set -g status-left-length 60
  93. set -g status-left " λ #[fg=colour214][#[fg=colour230]#S#[fg=colour214]]  "
  94.  
  95. # right status
  96. set -g status-right-length 60
  97. set -g status-right '#(whoami)@#(hostname --fqdn) #[fg=colour214]|#[fg=colour230] #(cut -d " " -f 1-3 /proc/loadavg) #[fg=colour214]|#[fg=colour230] #(date +"%a %Y-%m-%d %T %Z")'
Advertisement
Add Comment
Please, Sign In to add comment