From 03e5a31e64cbb51113816454928f57b3095b28cb Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 22 Aug 2019 08:58:53 +1000 Subject: Unclutter the tmux status line. Not everyone has YUUUGE terminals like I do. --- scripts/install/opensim.tmux.conf | 6 +++--- scripts/show-console | 2 +- scripts/start-sim | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install/opensim.tmux.conf b/scripts/install/opensim.tmux.conf index b7c61c9..84e0c21 100644 --- a/scripts/install/opensim.tmux.conf +++ b/scripts/install/opensim.tmux.conf @@ -71,11 +71,11 @@ set-option -g status-justify centre # Window list in the middle. ## A literal ‘#’ # Yes, my terminal really is bigger than 160 characters. -set-option -g status-left-length 80 +set-option -g status-left-length 42 #set-option -g status-left '[#H #S #F]' set-option -g status-left '#H [#S:#I.#P]#F' -set-option -g status-right-length 80 -set-option -g status-right '%F #(uptime)' # &F is ISO date, uptime starts with the current time, and ends with the load average. B-) +set-option -g status-right-length 64 +set-option -g status-right "%F #(uptime | cut -d ' ' -f 2-2,10-)" # %F is ISO date, uptime starts with the current time, and ends with the load average. B-) # Set window notifications set-option -g visual-activity on # Show status message for activity in monitor-activity windows. diff --git a/scripts/show-console b/scripts/show-console index 5818e70..e7fb941 100755 --- a/scripts/show-console +++ b/scripts/show-console @@ -1,3 +1,3 @@ #!/bin/bash -tmux -S ../../caches/opensim-tmux.socket select-window -t "OpenSimSC_console" \; attach-session -t "OpenSimSC_console" +tmux -S ../../caches/opensim-tmux.socket select-window -t "OpenSimSC" \; attach-session -t "OpenSimSC" diff --git a/scripts/start-sim b/scripts/start-sim index 724f81b..3c1fc2f 100755 --- a/scripts/start-sim +++ b/scripts/start-sim @@ -4,7 +4,7 @@ source common.sh getPrgDir USER=$(whoami) -console_name="OpenSimSC_console" +console_name="OpenSimSC" tmux_command="tmux -S ${PRGDIR}/../../caches/opensim-tmux.socket" tmux_session=${console_name} tmux_window="${tmux_command} select-window -t ${tmux_session}" -- cgit v1.1