From 6e1d7df5b569f2eb98759e1ca77a06556c5bd1dd Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sun, 6 Apr 2025 16:21:18 +0200 Subject: [PATCH] feat(tmux): add config --- config/tmux/current-theme.conf | 1 + config/tmux/dark-mode.conf | 19 +++++++++++++ config/tmux/light-mode.conf | 19 +++++++++++++ config/tmux/tmux.conf | 51 ++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 120000 config/tmux/current-theme.conf create mode 100644 config/tmux/dark-mode.conf create mode 100644 config/tmux/light-mode.conf create mode 100644 config/tmux/tmux.conf diff --git a/config/tmux/current-theme.conf b/config/tmux/current-theme.conf new file mode 120000 index 0000000..cff6d63 --- /dev/null +++ b/config/tmux/current-theme.conf @@ -0,0 +1 @@ +light-mode.conf \ No newline at end of file diff --git a/config/tmux/dark-mode.conf b/config/tmux/dark-mode.conf new file mode 100644 index 0000000..1ce06e2 --- /dev/null +++ b/config/tmux/dark-mode.conf @@ -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 diff --git a/config/tmux/light-mode.conf b/config/tmux/light-mode.conf new file mode 100644 index 0000000..4bbe9c7 --- /dev/null +++ b/config/tmux/light-mode.conf @@ -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 diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf new file mode 100644 index 0000000..edb6978 --- /dev/null +++ b/config/tmux/tmux.conf @@ -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