admin-stuff/supported-files/user_templates/alex/.tmux.conf

50 lines
1.3 KiB
Bash

# prefix C-A like screen
set-option -g prefix C-a
bind-key C-a send-prefix
unbind-key C-b
# more screen-like behavior
unbind-key A
bind-key A command-prompt "rename-window %%"
unbind Space
bind Space next-window
unbind BSpace
bind BSpace previous-window
unbind-key '$'
bind-key k kill-window
# toggle status bar
bind-key b set-option status
# select windows with function keys
bind-key -n F1 select-window -t :1
bind-key -n F2 select-window -t :2
bind-key -n F3 select-window -t :3
bind-key -n F4 select-window -t :4
bind-key -n F5 select-window -t :5
bind-key -n F6 select-window -t :6
bind-key -n F7 select-window -t :7
bind-key -n F8 select-window -t :8
bind-key -n F9 select-window -t :9
bind-key -n F10 select-window -t :10
bind-key -n F11 select-window -t :11
# status line
set -g status-right '#H'
set -g status-bg black
set -g status-fg white
set-window-option -g window-status-current-bg white
set-window-option -g window-status-current-fg black
# rename client window to command
set-window-option -g automatic-rename on
# rename terminal window title
set-option -g set-titles on
set-option -g set-titles-string "#T - #W - #I - #S - tmux"
# window notifications
#set-window-option -g monitor-activity on
# browse URLs
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'