aboutsummaryrefslogtreecommitdiff
path: root/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.conf')
-rw-r--r--tmux.conf11
1 files changed, 8 insertions, 3 deletions
diff --git a/tmux.conf b/tmux.conf
index 4ad2a66..d5381c7 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -31,15 +31,20 @@ bind-key M-l select-pane -R
# Reload configuration
-bind-key M-r source ~/.tmux.conf
+bind-key r source ~/.tmux.conf
# Respawn the pane ( Useful with certain
-bind-key M-M-r respawn-pane
+bind-key M-r respawn-pane
# Change the status line a little bit, most are close to defaults
set -g status-left-length 16
set -g status-left "[#S] "
-set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h "
+# Old status line, doesn't quite work right all the time
+# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h "
+# Who knew I'd be embedding such a horrible abomination into a tmux configuration file?
+set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime -p | awk 'BEGIN {OFS=\",\";} {print $1, $2, $3}' | sed -re's/^up,([0-9]+),([hmrsdwy]).*$/up:\\1\\2/g' ) "
+# TODO: show what it will look like for *BSD systems:
+
set -g status-right-length 40
set -g window-status-format "#I:#W#F"