-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
46 lines (38 loc) · 1.24 KB
/
.tmux.conf
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
# Constants
ACTIVE_COLOUR=cyan
INACTIVE_COLOUR=white
BG_COLOUR=magenta
PADDING=" "
# General
set-option -g default-shell /bin/zsh
set-option -g default-command /bin/zsh
# Set a new prefix key
unbind C-b
set-option -g prefix C-a
bind C-a send-prefix
# Set a key to clear pane
bind -n C-k send-keys -R \; clear-history \; send-keys C-l
# Set movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n S-Left previous-window
bind -n S-Right next-window
# Set split window keys
bind | split-window -h
bind - split-window -v
# Customize the status line
tmux_date="[%I:%M] %B %d, %Y"
tmux_spotify="#(osascript ~/dots/applescripts/spotify.scpt)"
set-option -g status-bg $BG_COLOUR
set-option -g status-fg $INACTIVE_COLOUR
set-option -g status-left $PADDING
set-option -g status-left-length 60
set-option -g status-right $tmux_spotify$PADDING$tmux_date
set-option -g status-right-length 120
set-option -g status-interval 1
set-window-option -g window-status-style default,fg=$INACTIVE_COLOUR,bg=$BG_COLOUR
set-window-option -g window-status-current-style default,fg=$ACTIVE_COLOUR,bg=$BG_COLOUR
set-window-option -g window-status-format '#W'$PADDING
set-window-option -g window-status-current-format '#W'$PADDING