mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
desktop: fix CPU temperature on violet
This commit is contained in:
parent
006e855dcb
commit
79e0ce4173
3 changed files with 6 additions and 2 deletions
|
|
@ -451,7 +451,7 @@ ramp-capacity-4 =
|
|||
; [[file:../../Desktop.org::*temperature][temperature:1]]
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
interval = 10
|
||||
interval = 2
|
||||
|
||||
hwmon-path = ${env:TEMP_HWMON_PATH}
|
||||
|
||||
|
|
|
|||
|
|
@ -2264,6 +2264,7 @@ declare -A BLOCKS=(
|
|||
declare -A TEMP_HWMON_PATHS=(
|
||||
["eminence"]="/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input"
|
||||
["indigo"]="/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
["violet"]="/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
)
|
||||
|
||||
# Geolocation for some modules
|
||||
|
|
@ -2281,6 +2282,7 @@ for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|||
fi
|
||||
SIZE=${FONT_SIZES[$MONITOR]}
|
||||
SCALE=${EMOJI_SCALE[$MONITOR]}
|
||||
TEMP=${TEMP_HWMON_PATHS[$(hostname)]}
|
||||
if [[ -z "$SCALE" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
|
@ -2699,7 +2701,7 @@ ramp-capacity-4 =
|
|||
#+begin_src conf-windows :noweb yes
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
interval = 10
|
||||
interval = 2
|
||||
|
||||
hwmon-path = ${env:TEMP_HWMON_PATH}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ declare -A BLOCKS=(
|
|||
declare -A TEMP_HWMON_PATHS=(
|
||||
["eminence"]="/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input"
|
||||
["indigo"]="/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
["violet"]="/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
|
||||
)
|
||||
|
||||
# Geolocation for some modules
|
||||
|
|
@ -74,6 +75,7 @@ for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|||
fi
|
||||
SIZE=${FONT_SIZES[$MONITOR]}
|
||||
SCALE=${EMOJI_SCALE[$MONITOR]}
|
||||
TEMP=${TEMP_HWMON_PATHS[$(hostname)]}
|
||||
if [[ -z "$SCALE" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue