diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-09-29 12:59:39 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-09-29 13:00:43 -0400 |
commit | 8e310fc08c635d1e3ca2be2f872b55c7549fc1e4 (patch) | |
tree | 99b64a8dfcbc72820b8511df543c74883188832e /bin | |
parent | d584633d0bc127780f437c10567c763bd1590d82 (diff) | |
download | conf-8e310fc08c635d1e3ca2be2f872b55c7549fc1e4.tar.gz conf-8e310fc08c635d1e3ca2be2f872b55c7549fc1e4.zip |
a few more tweaks to status display
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/status | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -52,7 +52,7 @@ while (<$i3status>) { : $state ne 'BAT' ? '#FFFFFF' : $val >= 40 ? '#FFFFFF' : $val >= 15 ? '#FFFF00' - : $val >= 5 ? '#880000' + : $val >= 5 ? '#CD0000' : '#FF0000'; } $battery_index++ unless defined $discharge_rate; @@ -61,7 +61,7 @@ while (<$i3status>) { if (defined $discharge_rate) { splice @$line, $battery_index + 1, 0, { name => 'battery_discharge', - full_text => "${discharge_rate}W", + full_text => sprintf("%0.2fW", $discharge_rate), color => ( $discharge_rate < 8 ? '#FFFFFF' : $discharge_rate < 12 ? '#00FF00' @@ -80,9 +80,10 @@ while (<$i3status>) { full_text => $weather, color => ( $temp >= 90 ? '#FF0000' - : $temp >= 72 ? '#FFFF00' - : $temp >= 50 ? '#FFFFFF' - : $temp >= 32 ? '#8888FF' + : $temp >= 78 ? '#FFFF00' + : $temp >= 73 ? '#00FF00' + : $temp >= 55 ? '#FFFFFF' + : $temp >= 32 ? '#CDCDFF' : '#0000FF' ), }; |