blob: 090837849988b4a9aedd09c3c881cf3ead1ba5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
## jmのtmuxのcfg ##
# ### ### ### ### ### ### #
# { ^[_] | * } instead of ^b
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
set -g prefix C-Space
bind C-Space send-prefix
set -g prefix2 '*'
bind '*' send-prefix
# commodities
# splits
bind n split-window -h
bind v split-window -v
bind h split-window -h # same as '*n'
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# close pane
bind x kill-pane
bind q kill-pane
# customization to make tmux fit in with the rice!
set -g status-interval 5
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
setw -g clock-mode-colour red
setw -g mode-style 'fg=red bg=black'
set -g pane-border-style 'fg=black'
set -g pane-active-border-style 'fg=red'
set -g status-position bottom
set -g status-justify left
set -g status-style 'fg=red'
set -g status-right-style 'fg=red bg=black'
set -g status-left " #S "
set -g status-left-length 30
set -g status-right " %Y-%m-%d %H:%M "
set -g status-right-length 50
bind n split-window -h \; resize-pane -U 2
bind v split-window -v \; resize-pane -U 2
setw -g window-status-current-style 'fg=red bg=black'
setw -g window-status-current-format ' #I #W #F '
setw -g window-status-style 'fg=red bg=black'
setw -g window-status-format ' #I #[fg=red]#W #[fg=black]#F '
setw -g window-status-bell-style 'fg=red bg=black'
set -g message-style 'fg=red bg=black'
# workspace cfg
# i3-style workspace jump or create
bind -r 0 run "tmux select-window -t 0 2>/dev/null || tmux new-window -t 0 -n 0"
bind -r 1 run "tmux select-window -t 1 2>/dev/null || tmux new-window -t 1 -n 1"
bind -r 2 run "tmux select-window -t 2 2>/dev/null || tmux new-window -t 2 -n 2"
bind -r 3 run "tmux select-window -t 3 2>/dev/null || tmux new-window -t 3 -n 3"
bind -r 4 run "tmux select-window -t 4 2>/dev/null || tmux new-window -t 4 -n 4"
bind -r 5 run "tmux select-window -t 5 2>/dev/null || tmux new-window -t 5 -n 5"
bind -r 6 run "tmux select-window -t 6 2>/dev/null || tmux new-window -t 6 -n 6"
bind -r 7 run "tmux select-window -t 7 2>/dev/null || tmux new-window -t 7 -n 7"
bind -r 8 run "tmux select-window -t 8 2>/dev/null || tmux new-window -t 8 -n 8"
bind -r 9 run "tmux select-window -t 9 2>/dev/null || tmux new-window -t 9 -n 9"
|