+ temperature.sh
This commit is contained in:
15
dots/bin/temperature.sh
Executable file
15
dots/bin/temperature.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# 26.03.04 :: klevstul
|
||||||
|
|
||||||
|
|
||||||
|
# list all termal zones:
|
||||||
|
# `for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done`
|
||||||
|
# list all temperatures:
|
||||||
|
# `find /sys/devices -name "temp*_input"`
|
||||||
|
# pch_cometlake @ tuxwarrior (i found out by doing more on all tmp input files, and comparing with psensor values):
|
||||||
|
# `/sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input` = `/sys/class/hwmon/hwmon6/temp1_input`
|
||||||
|
|
||||||
|
|
||||||
|
# the value is reported in milli-degrees celsius. we divide by 1000 to convert to degrees celsius
|
||||||
|
echo "$(($(cat /sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input) / 1000))°C"
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// https://github.com/Jan-Aarela/dotfiles/tree/main/hypr/themes/Mocha-Power
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
// MAIN BAR //
|
// MAIN BAR //
|
||||||
@@ -186,7 +188,7 @@
|
|||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"format": " {:%H:%M:%S %a %d.%m}",
|
"format": " {:%H:%M:%S %a %m %d}",
|
||||||
"tooltip-format": "{calendar}",
|
"tooltip-format": "{calendar}",
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"weeks-pos": "right",
|
"weeks-pos": "right",
|
||||||
Reference in New Issue
Block a user