Modernize tmux handling

This commit is contained in:
DariusIII
2025-11-01 16:26:59 +01:00
parent 96ef05f812
commit 189338aab6
21 changed files with 2109 additions and 10823 deletions
+45
View File
@@ -0,0 +1,45 @@
# NNTmux Tmux Configuration
# This file is now managed in the config/ directory
# GNU-Screen compatible prefix
set -g prefix2 C-a
bind C-a send-prefix -2
# Set copy mode to use VI keys - Activates PgUp/PgDn buttons
setw -g mode-keys vi
# Allows for faster key repetition
set -s escape-time 0
# Set 256 color display
set -g default-terminal "xterm-256color"
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
# Constrain window size to the maximum size of any client connected to that window
setw -g aggressive-resize on
# Activity monitoring
setw -g monitor-activity on
# Refresh the status bar every 5 seconds
set -g status-interval 5
# Right status bar with system information
set -g status-right "#[fg=yellow]#(free -h | grep 'Mem' | awk '{ print \"RAM Used: \"$3\", Cached: \"$6\", \";}')#(free -m | grep 'Swap' | awk '{ print \"Swapped: \"$3;}')M #[fg=cyan,bold] #(uptime | cut -d ',' -f 4-)"
# Scrollback line buffer per pane
set -g history-limit 6000
# Keep pane open after process ends - required for monitor.php re-spawns
set -g remain-on-exit on
# Enable mouse support
set -g mouse on
# Rename pane
bind t command-prompt -p "(rename-pane)" -I "#T" "select-pane -T '%%'"