feat(tmux): add config
This commit is contained in:
parent
3811febee1
commit
6e1d7df5b5
1
config/tmux/current-theme.conf
Symbolic link
1
config/tmux/current-theme.conf
Symbolic link
@ -0,0 +1 @@
|
||||
light-mode.conf
|
19
config/tmux/dark-mode.conf
Normal file
19
config/tmux/dark-mode.conf
Normal file
@ -0,0 +1,19 @@
|
||||
# Set colors
|
||||
active_window_bg=colour199
|
||||
inactive_window_bg=colour233
|
||||
bar_fg=colour255
|
||||
bar_bg=colour235
|
||||
|
||||
# Change pane colors
|
||||
set -g pane-border-style fg=colour237
|
||||
set -g pane-active-border-style fg=colour199
|
||||
|
||||
# Tweak currently active window
|
||||
setw -g window-status-current-style bg=colour199,fg=colour255,none
|
||||
# Tweak last active window style
|
||||
setw -g window-status-last-style fg=colour255,bg=colour238,none
|
||||
|
||||
# Tweak display of window overview
|
||||
setw -g window-status-style bg=colour233,fg=colour255,none
|
||||
# Tweak status line design
|
||||
set -g status-style bg=colour235,fg=colour199
|
19
config/tmux/light-mode.conf
Normal file
19
config/tmux/light-mode.conf
Normal file
@ -0,0 +1,19 @@
|
||||
# Colors for nested-tmux
|
||||
active_window_bg=colour199
|
||||
inactive_window_bg=colour242
|
||||
bar_bg=colour254
|
||||
bar_fg=colour255
|
||||
|
||||
# Change pane colors
|
||||
set -g pane-border-style fg=colour252
|
||||
set -g pane-active-border-style fg=colour199
|
||||
|
||||
# Tweak currently active window
|
||||
setw -g window-status-current-style bg=colour199,fg=colour255,none
|
||||
# Tweak last active window style
|
||||
setw -g window-status-last-style fg=colour255,bg=colour242,none
|
||||
|
||||
# Tweak display of window overview
|
||||
setw -g window-status-style bg=colour252,fg=colour240,none
|
||||
# Tweak status line design
|
||||
set -g status-style bg=colour254,fg=colour199
|
51
config/tmux/tmux.conf
Normal file
51
config/tmux/tmux.conf
Normal file
@ -0,0 +1,51 @@
|
||||
# vi:syntax=tmux
|
||||
# Reload the config with the "r" key
|
||||
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||
|
||||
set -s exit-empty off
|
||||
|
||||
unbind C-a
|
||||
set -g prefix C-b
|
||||
|
||||
# No automatic renaming of windows
|
||||
set -g automatic-rename off
|
||||
|
||||
# Enable 256-color terminal
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Set titles to be informative
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "tmux: [#H] [#S] [#W:#D #I:#P]"
|
||||
|
||||
# Change pane colors
|
||||
set -g pane-border-style fg=colour237
|
||||
set -g pane-active-border-style fg=colour199
|
||||
|
||||
# Tweak currently active window
|
||||
setw -g window-status-current-format " #F[#W] "
|
||||
# Tweak last active window style
|
||||
|
||||
# Tweak display of window overview
|
||||
setw -g window-status-format " #F[#W][#I] "
|
||||
|
||||
# Tweak status line design
|
||||
set -g status-justify centre
|
||||
set -g status-left " [#H] [#S] "
|
||||
set -g status-left-length 100
|
||||
set -g status-right '[%Y-%m-%d %H:%M.%S]'
|
||||
# Refresh status bar every 2s
|
||||
set -g status-interval 2
|
||||
|
||||
# Set some helpful limits & modes
|
||||
set -g mouse off
|
||||
set -g history-limit 500000
|
||||
|
||||
# Make tmux resize based on smallest client actually viewing the window, not just attached
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# Retain cwd on new pane creation
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
source-file ~/.config/tmux/current-theme.conf
|
||||
|
||||
#refresh-client
|
Loading…
x
Reference in New Issue
Block a user