diff --git a/yambar/config.yml b/yambar/config.yml index 1ec6e6d..161fd52 100644 --- a/yambar/config.yml +++ b/yambar/config.yml @@ -2,7 +2,7 @@ col_fg: &col_fg "dfdfdfff" col_fg_alt: &col_fg_alt "777777ff" col_fg_caution: &col_fg_caution "bd2c40ff" col_fg_alert: &col_fg_alert "ff4e4eff" -col_meter_bg: &col_meter_bg "3a3a3aaa" +col_meter_bg: &col_meter_bg "666666aa" col_chg: &col_chg "dddd77ff" col_visible_ws: &col_visible_ws "42429cff" @@ -419,6 +419,10 @@ bar: ramp: tag: capacity items: *battery_range_charging + state == full: + ramp: + tag: capacity + items: *battery_range_charging state == not charging: - ramp: tag: capacity diff --git a/yambar/temp.sh b/yambar/temp.sh index 305cfc7..0798095 100755 --- a/yambar/temp.sh +++ b/yambar/temp.sh @@ -2,13 +2,17 @@ temp="$( (cat /sys/class/thermal/thermal_zone*/temp 2>/dev/null | maths max | tr -d $'\n'; echo " / 1000") | bc)" rpm="$(sudo fan_control rpm 1)" +if test "$temp" -ge 60 && test "${rpm% RPM}" -lt 100; then + rpm="$(sudo fan_control rpm 1)" +fi + echo "temp|int|$temp" echo "rpm|int|${rpm% RPM}" if test "$temp" -ge 90; then status=alert elif test "$temp" -ge 80; then status=caution -elif test "$temp" -gt 57 || test "${rpm% RPM}" -gt 3000; then +elif test "$temp" -ge 60 || test "${rpm% RPM}" -gt 3000; then status=active else status=normal