nixos-config/profiles/workspace/i3blocks/scripts/temperature.nix

7 lines
135 B
Nix
Raw Normal View History

2020-02-17 17:00:59 +04:00
{ ... }:
''
temp=$((`cat /sys/class/thermal/thermal_zone*/temp | sort | tail -1`/1000))
echo $temp °
[[ $temp -gt 80 ]] && exit 33
''