aboutsummaryrefslogtreecommitdiff
path: root/tmux.conf
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-01-18 19:14:07 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-01-18 19:14:07 -0500
commit6af3dc7e4e13fc2af957cab2d29af8f0979886c8 (patch)
treeabaa20e53c7fa49c496709be2f5e6d4a120e9c09 /tmux.conf
parent8b9f900a9a11bf0a76fa72c614cc2f422cff7623 (diff)
downloaddotfiles-6af3dc7e4e13fc2af957cab2d29af8f0979886c8.tar.gz
dotfiles-6af3dc7e4e13fc2af957cab2d29af8f0979886c8.tar.xz
A better version of the status line for Linux
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"