scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 423b3b8a221d3b7e2dcc0c23d68dd4610436ecf2
parent 22d96d4db3e5bdb2630ab011a213f16e9c256873
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Tue Jun 11 17:25:41 +0200

changed colors

Diffstat:
statusline.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/statusline.sh b/statusline.sh @@ -4,7 +4,7 @@ # prints out a line formatted for tmux status. -w='#[fg=white,nobold]' +w='#[fg=yellow,bold]' B='#[fg=black,bold]' SEP="$w»$B" @@ -20,7 +20,7 @@ ramused() { ramtotal=$(free -m| sed -n '2p'| awk '{print $2}') ramused=$(free -m| sed -n '3p'| awk '{print $3}') - ram_perc=$(((100*$ramused)/$ramtotal)) + ram_perc=$(( 100*$ramused/$ramtotal )) echo $ram_perc }