view .tmux.conf @ 496:3954af64d52c

Updated config for mouse wheel on macos
author unexist
date Wed, 01 Jul 2020 14:12:47 +0200
parents fb264348ba0d
children
line wrap: on
line source


# @file tmux.conf
#
# @copyright (c) 2010-2020, Christoph Kappel <unexist@subforge.org>
# @version $Id: .tmux.conf,v 496 1593605567.0-7200 unexist $
#

# Prefix key
set -g prefix C-a
unbind C-b
bind C-a send-prefix

# Keys
bind k confirm kill-window
bind K confirm kill-server
bind % split-window -h
bind : split-window -v
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
bind . command-prompt
bind a last-window
bind space command-prompt -p index "select-window"

# Keys w/o prefix key
bind -n C-right next-window
bind -n C-left previous-window

# Special
bind s new-window -n "su" su
bind i new-window -n "irb" irb
bind j new-window -d -n "jd" jd.sh
bind m new-window -n "ncmpcpp" "setw monitor-activity off; exec ncmpcpp"
bind w new-window -n "wicd" "setw monitor-activity off; exec wicd-curses"
bind x new-window -n "xvfb" "setw monitor-activity off; exec ruby /home/unexist/projects/subtle/test/xserver.rb"
bind S command-prompt -p "Host?" "new-window -n 'ssh:%1' 'ssh %1'"
bind A command-prompt -p "Name?" "setw automatic-rename off; rename-window %%"
bind / command-prompt -p "Manpage?" "new-window -n 'man:%1' 'exec man %1'"

# Options
set -g bell-action none
set -g set-titles on
set -g set-titles-string "tmux:#W#I"
set -g base-index 1
set -g status-left "-- #W --"
#set -g status-left-attr bold
set -g status-right "#H:#S"
#set -g pane-active-border-bg black
#set -g pane-active-border-fg black
set -g default-terminal "screen-256color"
#set -g default-path "$HOME"

# Mouse wheel
set -g mouse on

set-option -g status-keys vi
set-window-option -g mode-keys vi

bind-key -T copy-mode-vi WheelUpPane send-keys -X scroll-up
bind-key -T copy-mode-vi WheelDownPane send-keys -X scroll-down

# Window options
setw -g monitor-activity off
setw -g automatic-rename on

# Colors
#setw -g window-status-current-fg red

set -g status-bg black
set -g status-fg white

#set -g message-bg white
#set -g message-fg black