aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux/.tmux.conf4
-rwxr-xr-xtmux/code/sys/status10
2 files changed, 9 insertions, 5 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
index 19c3a29..9a8f412 100644
--- a/tmux/.tmux.conf
+++ b/tmux/.tmux.conf
@@ -107,14 +107,14 @@ setw -g aggressive-resize on
set-option -g status-position bottom
setw -g window-status-format "#[bg=colour8]#[fg=black]█▓░ #W "
setw -g window-status-attr dim
-setw -g window-status-current-format "#[bg=blue]#[fg=black]█▓░ #W "
+setw -g window-status-current-format "#[bg=colour66]#[fg=black]█▓░ #W "
setw -g window-status-content-attr blink
setw -g window-status-current-attr dim
# Info on right
set -g status-right-length 100
set -g status-right ''
-set -g status-right '#[bg=colour141]#[fg=colour0]█▓░ #(~/code/sys/status)'
+set -g status-right '#(~/code/sys/status)'
# Info on left (no session display)
set -g status-left ''
diff --git a/tmux/code/sys/status b/tmux/code/sys/status
index ba00749..2aa0b4f 100755
--- a/tmux/code/sys/status
+++ b/tmux/code/sys/status
@@ -34,6 +34,7 @@ C3="#B3291C"
C4="#3A3A3A"
C5="#efefef"
C6="#878787"
+C7="#8787af"
draw()
{
@@ -83,7 +84,7 @@ bat()
st="+"
;;
esac
- echo "#[fg=$C0]"$st$(( 100 * $bn / $bf ))"%"
+ echo $st$(( 100 * $bn / $bf ))"%"
}
cpu()
{
@@ -101,7 +102,10 @@ clock()
mday=$(date +'%d')
echo "#[fg=$C5]#[bg=$C4] $mtime #[fg=$C6]$myear#[fg=$C5]$mday #[fg=$C6]$EOL"
}
-
+front()
+{
+ echo "#[bg=$C7]#[fg=$C0]▓░"
+}
CPU_INFO=`cpu`
RAM_INFO=`ram`
-echo -e `bat` `draw $RAM_INFO 4` `temp` `draw $CPU_INFO 7``clock`
+echo -e `front` `bat` `draw $RAM_INFO 4` `temp` `draw $CPU_INFO 7``clock`