Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- # Load:
- # * the stock byobu profile
- # * any windows
- # * and the local byoburc (instead of .screenrc)
- # Used at startup but not profile refresh
- #
- # Copyright (C) 2009-2011 Canonical Ltd.
- #
- # Authors: Dustin Kirkland <[email protected]>
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, version 3 of the License.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- ###############################################################################
- source-file $BYOBU_CONFIG_DIR/color.tmux
- source-file $BYOBU_CONFIG_DIR/datetime.tmux
- source-file $BYOBU_CONFIG_DIR/profile.tmux
- source-file $BYOBU_CONFIG_DIR/keybindings.tmux
- #source-file $BYOBU_CONFIG_DIR/windows.tmux
- source-file $BYOBU_CONFIG_DIR/.tmux.conf
- # smart pane switching with awareness of vim splits
- bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
- bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
- bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
- bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
- bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
- # designed to work well in light mode or dark mode
- #
- # copy-and-paste into your tmux.conf or source it like so:
- #
- # source-file path/to/tmux-pencilcolors.conf
- #
- # statusline
- set -g status-bg green # transparent
- set -g status-fg white
- ##set -g status-attr default
- # default window title colors
- setw -g window-status-fg blue
- setw -g window-status-bg default
- setw -g window-status-attr dim
- # active window title colors
- setw -g window-status-current-fg brightred
- setw -g window-status-current-bg default
- setw -g window-status-current-attr bright
- # bell alerted window color
- setw -g window-status-bell-bg red
- setw -g window-status-bell-fg white
- setw -g window-status-bell-attr bright
- # content alerted color
- setw -g window-status-content-bg blue
- setw -g window-status-content-fg white
- setw -g window-status-content-attr bright
- setw -g window-status-activity-bg blue
- setw -g window-status-activity-fg white
- setw -g window-status-activity-attr bright
- # pane borders
- set -g pane-border-fg white
- set -g pane-border-bg default
- set -g pane-active-border-fg brightblack
- set -g pane-active-border-bg default
- # command line
- set -g message-fg default
- set -g message-bg default
- set -g message-attr bright
- # options
- setw -g window-status-format "#[fg=colour214]#[bg=colour234] #I #[bg=colour235]#[fg=colour230] #W "
- setw -g window-status-current-format "#[fg=colour214]#[bg=colour234] #I #[bg=colour230]#[fg=colour235,bold] #W "
- set -g status-utf8 on
- set -g status on
- setw -g mode-keys vi
- # left status
- set -g status-left-length 60
- set -g status-left " λ #[fg=colour214][#[fg=colour230]#S#[fg=colour214]] "
- # right status
- set -g status-right-length 60
- 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