mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# 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 '%%'"
|
|
|