diff options
| author | Christoph <code@c.onl> | 2025-11-10 20:56:48 +0100 |
|---|---|---|
| committer | Christoph <code@c.onl> | 2025-11-10 21:05:15 +0100 |
| commit | 71d379904e61256487950bfd372ef84dd9ea9bea (patch) | |
| tree | 46a8b74fdbd7d685020dbc3fce02fcdd74282706 /polybar/OpenBSD-cpu-temp.sh | |
| parent | e68724182cd1e6b8f5be723cf6d0772f238ca526 (diff) | |
| download | dots-main.tar.gz | |
Diffstat (limited to 'polybar/OpenBSD-cpu-temp.sh')
| -rwxr-xr-x | polybar/OpenBSD-cpu-temp.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/polybar/OpenBSD-cpu-temp.sh b/polybar/OpenBSD-cpu-temp.sh new file mode 100755 index 0000000..728ab39 --- /dev/null +++ b/polybar/OpenBSD-cpu-temp.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +while true; do + sysctl hw.sensors.ksmn0.temp | cut -d'=' -f2 | cut -d'.' -f1 + sleep 1 +done |