# --- Basic settings ---
set -g history-limit 10000
set -g status-interval 2

# --- Detailed Status Bar ---
set -g status-right-length 200
set -g status-right "CPU: #(top -bn1 | grep 'Cpu' | awk '{print $2}')% | Memory: #(free -m | awk '/Mem:/ {print $3\"MiB/\"$2\"MiB\"}') | Disk: #(df -h --output=target,used,size,pcent | sort | head -n 1 | awk '{ print $2 \"/\" $3 \" \" \"(\"$4\")\" }') | Uptime: #(uptime -p) | %H:%M #(date +'%Z') "
    
# --- Colors for status ---
set -g status-style bg=black,fg=green

# --- Split shortcuts ---
bind | split-window -h
bind - split-window -v

# --- Reload config easily ---
bind r source-file ~/.tmux.conf \; display "Config reloaded!"