From 29d66a4100637e2f0221e0954eaf2ad8f2847ff0 Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Sat, 7 Nov 2026 07:54:14 -0600 Subject: Sync shared tools from rigel (laptop wins on divergence) - alacritty: doom-one theming, Terminess Nerd Font 14 - tmux: native rewritten conf, C-a prefix, no TPM/powerline deps - nvim: init.lua migrated to vim.pack (0.11+), nvim-pack-lock.json, markdownlint.yaml added; keep lazy-lock.json (laptop parity) --- tmux/.config/tmux/tmux.conf | 129 ++++++++++++++++++++++++++++++-------------- 1 file changed, 88 insertions(+), 41 deletions(-) (limited to 'tmux') diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 479dfb9..f158a30 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,47 +1,54 @@ -# Set terminal colors -set-option -sa terminal-overrides ",xterm*:Tc" - -#set-option -g status-style bg=default -#set-option -g status-justify left -#set-option -g status-left-length 50 -#set-option -g status-interval 2 -#set-option -g status-left '[ #[fg=white,bright]#h ] #[default]' -#set-option -g status-right-length 80 -#set-option -g status-right '[ #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -a 1 --interval 2) | #{battery_percentage} #{battery_remain} | #[fg=white,bright]%m/%d %H:%M #[fg=default]]' -#set-window-option -g window-status-current-format '#[fg=red,bg=default]( #[fg=white,bright,bg=default]#I:#W#[fg=red,nobright,bg=default] )#[fg=default]' -set -as terminal-features ",alacritty*:RGB" -source /usr/share/powerline/bindings/tmux/powerline.conf - +# Terminal colors +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",*:RGB" set -g mouse on +set -g set-clipboard on +set -g allow-passthrough on + +# --- Native replacement for tmux-sensible --- +set -g history-limit 50000 +set -g display-time 4000 +set -g status-interval 5 +set -s escape-time 10 +set -g focus-events on +set -g aggressive-resize on +set -g renumber-windows on +set -g detach-on-destroy off +set -g display-panes-time 800 + set -g base-index 1 set -g pane-base-index 1 -# Map prefix to A +# Map prefix to C-a unbind C-b set-option -g prefix C-a bind-key C-a send-prefix unbind % -bind | split-window -h +bind \\ split-window -h unbind '"' bind - split-window -v +unbind r +bind r source-file ~/.config/tmux/tmux.conf + set-window-option -g mode-keys vi -bind -T copy-mode-vi v send-keys -X begin-selection -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel +unbind -T copy-mode-vi MouseDragEnd1Pane # vim-like pane switching -bind -r ^ last-window -bind -r k select-pane -U -bind -r j select-pane -D bind -r h select-pane -L +bind -r j select-pane -D +bind -r k select-pane -U bind -r l select-pane -R -# vim-linke pane resizing -bind -r K resize-pane -U 5 -bind -r J resize-pane -D 5 +# vim-like pane resizing bind -r H resize-pane -L 5 +bind -r J resize-pane -D 5 +bind -r K resize-pane -U 5 bind -r L resize-pane -R 5 bind -r m resize-pane -Z @@ -50,20 +57,60 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse -# List of plugins -set -g @tpm_plugins ' \ - tmux-plugins/tpm \ - tmux-plugins/tmux-sensible \ - tmux-plugins/tmux-resurrect \ - git@github.com:dracula/tmux \ - ' - # thewtex/tmux-mem-cpu-load \ - # tmux-plugins/tmux-battery \ -#' - -set -g @dracula-plugins "cpu-usage battery time" -set -g @dracula-show-powerline true -set -g @dracula-battery-label "󰁺 " -set -g @dracula-refresh-rate 1 - -run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' +# --- Native theme (replaces dracula/tmux) --- +%hidden one_bg="#222436" +%hidden one_fg="#c8d3f5" +%hidden one_cyan="#86e1fc" +%hidden one_black="#1b1d2b" +%hidden one_gray="#3a3f5a" +%hidden one_magenta="#c099ff" +%hidden one_pink="#ff757f" +%hidden one_red="#ff757f" +%hidden one_green="#c3e88d" +%hidden one_yellow="#ffc777" +%hidden one_blue="#82aaff" +%hidden one_orange="#ff9e64" +%hidden one_black4="#444a73" + +set -g status on +set -g status-position bottom +set -g status-justify left +set -g status-left-length 100 +set -g status-right-length 100 +set -g status-style "bg=$one_black,fg=$one_fg" + +# Left: session +set -g status-left "#[bg=$one_blue,fg=$one_black,bold] #S #[bg=$one_black,fg=$one_blue]" + +# Windows +set -g window-status-separator "" +set -g window-status-style "bg=$one_black,fg=$one_fg" +set -g window-status-format " #I:#W " +set -g window-status-current-style "bg=$one_blue,fg=$one_black,bold" +set -g window-status-current-format "#[bg=$one_black,fg=$one_blue]#[bold] [#I]#W #[nobold]#[bg=$one_black,fg=$one_blue]" +set -g window-status-activity-style "bg=$one_black,fg=$one_yellow" +set -g window-status-bell-style "bg=$one_black,fg=$one_red,bold" +set -g monitor-activity on + +# Right: date/time + host. Add CPU/battery via #() only if needed. +set -g status-right "#[bg=$one_black,fg=$one_black4] #[bg=$one_black,fg=$one_blue]#[bg=$one_blue,fg=$one_black,bold] #h " +# Optional (uncomment if you have acpi/upower and want dracula-like segments): +# set -g status-right "#[bg=$one_black,fg=$one_black4]#[bg=$one_black4,fg=$one_fg] #(cut -d' ' -f1-3 /proc/loadavg) #[bg=$one_black4,fg=$one_magenta]#[bg=$one_magenta,fg=$one_black,bold] 󰁺 #(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo '--')% #[bg=$one_magenta,fg=$one_blue]#[bg=$one_blue,fg=$one_black,bold] %Y-%m-%d %H:%M #h " + +# Panes +set -g pane-border-style "fg=$one_gray" +set -g pane-active-border-style "fg=$one_blue" +set -g display-panes-colour "$one_orange" +set -g display-panes-active-colour "$one_blue" + +# Messages / prompts +set -g message-style "bg=$one_gray,fg=$one_fg" +set -g message-command-style "bg=$one_gray,fg=$one_fg" + +# Copy mode / selection +set -g mode-style "bg=$one_blue,fg=$one_black,bold" +set -g copy-mode-match-style "bg=$one_yellow,fg=$one_black" +set -g copy-mode-current-match-style "bg=$one_orange,fg=$one_black,bold" +set -g copy-mode-mark-style "bg=$one_magenta,fg=$one_black" + +set -g clock-mode-colour "$one_blue" -- cgit v1.3