-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
61 lines (47 loc) · 2.11 KB
/
tmux.conf
File metadata and controls
61 lines (47 loc) · 2.11 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
# --- Fish Shell Integration ---
set-option -g default-shell /usr/bin/fish
set-option -g default-command fish
# --- Prefix Configuration (Backtick) ---
set-option -g prefix `
set-option -g prefix2 C-a
unbind C-b
bind-key ` last-window
bind-key e send-prefix
# --- Terminal Colors ---
set-option -s default-terminal "tmux-256color"
set-option -sa terminal-overrides ",tmux-256color:RGB"
set-option -sa terminal-overrides ",tmux-256color*:Tc"
# --- Requested Keybindings: ` + m, c, v ---
# These follow your current directory (make sure to add the fish function to config.fish!)
bind-key m new-window -c "#{pane_current_path}"
bind-key c split-window -v -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
# --- Wayland Clipboard ---
setw -g mode-keys vi
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
# --- Status Bar Refresh ---
set -g status-interval 5
# --- Light Mode Theme + Resource Monitors ---
set -g status-style 'bg=#eeeeee,fg=#333333'
set -g status-left ' #[fg=#005fb8,bold]#S '
# status-right: Includes a more robust battery check
set -g status-right-length 100
set -g status-right "#[fg=#666666]CPU: #(top -bn1 | grep 'Cpu(s)' | awk '{print $2}')%% | MEM: #(free -m | awk '/Mem:/ { printf(\"%%.1fG\", $3/1024) }') | #[fg=#005fb8]#(cat /sys/class/power_supply/BAT*/capacity | head -n 1)%% #[fg=#888888]| %H:%M "
# --- Window Styling ---
setw -g window-status-current-style 'fg=#000000,bold,bg=#ffffff'
setw -g window-status-current-format ' #I:#W#F '
setw -g window-status-style 'fg=#777777'
setw -g window-status-format ' #I:#W#F '
# --- Panes & Mouse ---
set -g mouse on
set -g pane-border-style 'fg=#dcdcdc'
set -g pane-active-border-style 'fg=#005fb8'
# --- Config Reload ---
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @resurrect-capture-pane-contents 'on'
run '~/.tmux/plugins/tpm/tpm'
# -- Dont forget git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm