Skip to content

Choose a tag to compare

@2KAbhishek 2KAbhishek released this 25 Aug 09:06
· 9 commits to main since this release

🎨 Dynamic Colors & Auto-Palette Hashing

  • Auto-Palette Hashing: Deterministically assign vibrant, distinct colors to sessions and git branches using zero-fork FNV-1a hashing (@tmux2k-session-dynamic-colors "auto").
  • Pattern-Based Dynamic Styling: Style segments conditionally using glob patterns (e.g. @tmux2k-git-dynamic-colors "*dirty*=red main=green auto", @tmux2k-cwd-dynamic-colors "/etc*=red ~/work*=blue").
  • Custom Palette Support: Configure custom color palettes via @tmux2k-dynamic-colors-palette.
  • Zero-Fork Engine: Built with pure Bash integer arithmetic and direct variable assignment for 0 subshell overhead during status refresh ticks.

⌨️ New Keyboard Layout Plugin (keyboard-layout)

  • Multi-Compositor & Multi-OS Detection: Track active keyboard layouts across KDE Plasma (KWin), Sway, Hyprland, GNOME, X11, and macOS.
  • Configurable Layout & Casing: Customize format (short vs long) and text casing via @tmux2k-keyboard-layout-case (upper, lower, title).
  • Settings Popup Integration: Click the segment to automatically launch your desktop environment's keyboard settings.

⚡ Performance & Core Architecture

  • Single-Pass Option Lookups: Batched tmux user options into a single-pass hash table for up to a 21x speedup during startup.
  • Zero-Fork Parameter Expansion: Replaced subshell-based directory and state resolution with pure parameter expansions.
  • Centralized OS Detection: Zero-fork HOST_OS detection shared across all core utilities and plugins.
  • Optimized State Management: Extracted cache and state handling into lib/cache_handler.sh.

🐛 Bug Fixes & Improvements

  • Uptime on macOS / BSD: Switched from fragile string parsing to boot epoch calculation via /proc/uptime (Linux) and sysctl kern.boottime (macOS/BSD) (#100).
  • macOS Bandwidth Detection: Fixed default network interface fallback on Darwin.
  • Variable & Path Expansion: Standardized get_tmux_option with home directory and environment variable expansion.