-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
154 lines (119 loc) · 4.57 KB
/
.tmux.conf
File metadata and controls
154 lines (119 loc) · 4.57 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# ████████╗███╗ ███╗██╗ ██╗██╗ ██╗
# ╚══██╔══╝████╗ ████║██║ ██║╚██╗██╔╝
# ██║ ██╔████╔██║██║ ██║ ╚███╔╝
# ██║ ██║╚██╔╝██║██║ ██║ ██╔██╗
# ██║ ██║ ╚═╝ ██║╚██████╔╝██╔╝ ██╗
# ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
#Eitthvað basic shit config breyta seinna
unbind C-b
set -g prefix C-Space
bind Space send-prefix
set-window-option -g xterm-keys on
# 1 indexed
set -g base-index 1
set -g pane-base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Fix resize nonsense
set-window-option -g aggressive-resize
# Vim focus event fix (hopefully works)
set -g focus-events on
set -g default-terminal "screen-256color"
set -g history-limit 10000
setw -g mode-keys vi
setw -g status-keys emacs
set -g mouse on
setw -g monitor-activity on
bind v split-window -h
bind b split-window -v
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r H resize-pane -L 10
bind -r L resize-pane -R 10
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Swap panes
bind C-L swap-pane -t -1
bind C-H swap-pane -t +1
# Switch to last active window (like alt-tab)
bind-key Tab last-window
# Switch to last active pane
bind-key C-Space select-pane -l
# Kill a pane
bind BSpace confirm-before -p "murder pane #P? (y/n)" kill-pane
# Rotate windows
bind -r C-o rotate-window
# Shift to switch windows
bind -n M-L previous-window
bind -n M-H next-window
# No delay for escape key press
set -sg escape-time 0
# Reload TMUX config
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded!'
# BSPWM style tiling
bind Enter \
if-shell "[ $(($(tmux display -p '8*#{pane_width}-20*#{pane_height}'))) -lt 0 ]" \
"splitw -v -c '#{pane_current_path}'" \
"splitw -h -c '#{pane_current_path}'" \
# THEME
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami)'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
set -g status-right "#[fg=cyan]%A, %d %b %Y %I:%M %p"
# Copy paste crap
# Update default binding of `Enter` to also use copy-pipe, broken shit
unbind -T copy-mode-vi Enter
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key -T copy-mode q send-keys -X cancel
set -as terminal-overrides ",*:U8=0"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Default statusbar colors
set-option -g status-style fg=colour9,bg=colour235
# Default window title colors
set-window-option -g window-status-style fg=colour244,bg=default #base0 and default
# set-window-option -g window-status-style dim
# Active window title colors
set-window-option -g window-status-current-style fg=colour166,bg=default #orange and default
set-window-option -g window-status-current-style bright
# set-window-option -g window-status-current-bg red
# Set active pane to different color
set -g window-style fg=white,bg=colour232
set -g window-active-style fg=white,bg=black
# Pane border
set-option -g pane-border-style fg=colour63
set-option -g pane-active-border-style fg=colour9,bold
setw -g window-status-current-style fg=black,bg=white
# Message text
set-option -g message-style fg=colour166,bg=colour235
# Pane number display
set-option -g display-panes-active-colour colour35
set-option -g display-panes-colour colour166
# Clock
set-window-option -g clock-mode-colour colour64
# Bell (fix this)
set-window-option -g window-status-bell-style fg=colour235,bg=colour160
# Zoom status
set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{?window_zoomed_flag, ↕ , }'
# Pane border lines
set-option -g pane-border-lines heavy
# PLUGINS:
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'srcery-colors/srcery-tmux'
run '~/.tmux/plugins/tpm/tpm'