diff options
author | Joe <rrbo@proton.me> | 2023-06-14 16:52:20 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-06-14 16:52:20 +0200 |
commit | 676f8cf998a387045f79607b4bbbc34a5397f55e (patch) | |
tree | 77067c1261a57b4374430690b7db92ed70b16489 /.local/bin/status/sb-temp | |
parent | up (diff) | |
download | dotfiles-bsd-676f8cf998a387045f79607b4bbbc34a5397f55e.tar.gz dotfiles-bsd-676f8cf998a387045f79607b4bbbc34a5397f55e.tar.bz2 dotfiles-bsd-676f8cf998a387045f79607b4bbbc34a5397f55e.tar.xz dotfiles-bsd-676f8cf998a387045f79607b4bbbc34a5397f55e.tar.zst dotfiles-bsd-676f8cf998a387045f79607b4bbbc34a5397f55e.zip |
up
Diffstat (limited to '.local/bin/status/sb-temp')
-rwxr-xr-x | .local/bin/status/sb-temp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/status/sb-temp b/.local/bin/status/sb-temp index 1d71bb0..dc2ad35 100755 --- a/.local/bin/status/sb-temp +++ b/.local/bin/status/sb-temp @@ -1,3 +1,7 @@ #!/bin/sh -echo -n "" $(sysctl -n dev.cpu.0.temperature | cut -d '.' -f1)"°C" +case $(hostname -s) in + mother) ;; + po-rbo) cat /sys/class/hwmon/hwmon5/temp1_input | awk '{printf (" %3.1f°C", ($1 / 1000))}' ;; + mars) echo -n "" $(sysctl -n dev.cpu.0.temperature | cut -d '.' -f1)"°C" ;; +esac |