dotfiles/bin/cpu-temp

13 lines
211 B
Plaintext
Raw Permalink Normal View History

2020-07-18 15:11:20 +02:00
#!/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