Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # tmux launch script
- #!/bin/bash
- outerconf="/home/$USER/.tmux.outer.conf"
- innerconf="/home/$USER/.tmux.inner.conf"
- tmux -f $outerconf new-session \; \
- split-window -v -p 65 \; \
- split-window -h \; \
- select-pane -t 0 \; \
- send-keys "tmux -f $innerconf -L top-pane new-session \; select-window -t 0 \; se
- nd-keys "weechat" C-m \;" C-m \; \
- select-pane -t 1 \; \
- send-keys "tmux -f $innerconf -L left-pane" C-m \; \
- select-pane -t 2 \; \
- send-keys "tmux -f $innerconf -L right-pane" C-m \; \
- # tmux conf for "master" process
- # Bare config for master tmux process that runs subprocesses
- # Mouse enabled to allow pane switching by click
- # Statusbar disbled as panes will display their own
- # Enable mouse mode (tmux 2.1 and above)
- set -g mouse on
- # default term
- set -g default-terminal "screen-256color"
- # statusbar
- set -g status off
- # panes
- set -g pane-active-border-fg colour1
- set -g pane-border-fg colour233
- # tmux conf for "inner" processes
- # Functionality Changes
- # remap prefix from 'C-b' to 'C-a'
- unbind C-b
- set -g prefix C-a
- bind-key C-a send-prefix
- # split panes using | and -
- bind | split-window -h
- bind - split-window -v
- unbind '"'
- unbind %
- # reload config file (change file location to your the tmux.conf you want to use)
- bind r source-file ~/.tmux.conf
- # Enable mouse mode (tmux 2.1 and above)
- set -g mouse on
- # Shift arrow to switch windows
- bind -n S-Left previous-window
- bind -n S-Right next-window
- # Shit arrow for new window and nameing
- bind -n S-Down new-window
- bind -n S-Up command-prompt 'rename-window %%'
- # don't rename windows automatically
- set-window-option -g allow-rename off
- # Visual Changes
- # default term
- set -g default-terminal "screen-256color"
- # notification of display change
- #set -g visual-activity on
- setw -g monitor-activity on
- # statusbar
- set -g status-interval 1
- set -g status-position top
- set -g status-justify left
- set -g status-bg default
- set -g status-fg colour10
- set -g status-left ''
- set -g status-right '#[fg=colour10,bg=default,bold] %Y-%m-%d #[fg=colour10,bg=default,bold] %H:%M:%S '
- setw -g window-status-current-fg colour1
- setw -g window-status-current-bg colour6
- setw -g window-status-current-attr bold
- #setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement