From a3c78461725005422a69e146d933b220c0241821 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Thu, 6 Mar 2025 08:33:52 -0500 Subject: [PATCH] tmux: base config complete --- tmux/tmux.conf | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 3f406a1..9f1a9a2 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -4,8 +4,9 @@ #=============================================================================== # General Settings #=============================================================================== -set-option -g prefix C-b # Remap prefix key -set -g default-terminal "screen-256color" # Set terminal +set -g prefix C-b # Remap prefix key +set -g default-terminal "tmux-256color" # Set terminal +set -ga terminal-features ",xterm-256color:RGB" # Enable additional features set -g mouse on # Enable mouse set -sg escape-time 0 # Delay time set -g display-time 2000 # Message display time @@ -33,23 +34,26 @@ set -g message-style "fg=#{@thm_red} bg=#{@thm_bg} bright" # Menus set -g menu-style "fg=#{@thm_fg}" set -g menu-selected-style "fg=#{@thm_lavender} bg=#{@thm_bg}" -# Clock -set -g clock-mode-colour "fg=#{@thm_lavender}" # Modes set -g mode-style "fg=#{@thm_lavender} bg=terminal" #=============================================================================== # Status Lines #=============================================================================== -setw -g monitor-activity on # Monitor window activity +set -wg monitor-activity on # Monitor window activity set -g visual-activity off # No status line message -set -g allow-rename off # Disallow program renaming -set -g allow-set-title off +set -g allow-rename on # Disallow program renaming +set -g allow-set-title on # TMUX Status Line +set -g status-interval 600 set -g status-left-length 40 # Left-side char length set -g status-left "#[bright][ #h ] " # Left-side format set -g window-status-format " #I " # Window-list format set -g window-status-current-format " #I: #{pane_current_command} " set -g status-right-length 80 # Right-side char length +WERR='#(echo -n "Error Fetching Weather Info")' +WEATHER='#(curl -s wttr.in/Buffalo?format="%%C+%%t+%%h+%%P%%20%%m" || $WERR)' +DATEISH='#(date +"%%A, %%B %d")' +set -g status-right "$WEATHER #[bright]// $DATEISH" # Border Status Lines set -g pane-border-format " [#{pane_current_path}] #{pane_current_command} " #===============================================================================