diff options
author | Luca Matei Pintilie <luca@lucamatei.com> | 2024-07-11 17:53:42 +0000 |
---|---|---|
committer | Luca Matei Pintilie <luca@lucamatei.com> | 2024-07-11 17:53:42 +0000 |
commit | d7a21e259b80010ce7368e8aaa0863886a947085 (patch) | |
tree | 73584e30416fec4264aeea9b1a20aae9846f02ee /.config/swayrbar/scripts/temp-status | |
parent | 9c0ae0039bb239291b0fdf42a2a205aff0356916 (diff) | |
download | dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar.gz dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar.bz2 dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar.lz dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar.xz dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.tar.zst dotfiles-d7a21e259b80010ce7368e8aaa0863886a947085.zip |
swayrbar: add config
Diffstat (limited to '.config/swayrbar/scripts/temp-status')
-rwxr-xr-x | .config/swayrbar/scripts/temp-status | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/swayrbar/scripts/temp-status b/.config/swayrbar/scripts/temp-status new file mode 100755 index 0000000..60220d2 --- /dev/null +++ b/.config/swayrbar/scripts/temp-status @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +temps="$(cat /sys/class/hwmon/hwmon*/temp*_input)" +temp=$(echo \("$(echo -n "$temps" | tr '\n' '+')) / $(echo "$temps" | wc -l) / 1000" | bc) + +echo -n "$temp" °C |