dotfiles/bin/cpu-temp
2020-07-18 15:11:20 +02:00

13 lines
211 B
Fish
Executable File

#!/usr/bin/env fish
if test "$argv[1]" = "-w"
set time $argv[2]
test -z "$time" && set time 1
while true
echo (cpu-temp)
sleep $time
end
else
sensors -j | jq '."k10temp-pci-00c3".Tdie.temp1_input'
end