dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[FEATURE] Add cpu temperature to the hardware slideout

Open skinnypuppy opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

Would it be possible to add a CPU temp module to the hardware (DCM) slideout on the waybar for laptop users?

Describe alternatives you've considered

No response

Additional context

No response

Support or Contribution

skinnypuppy avatar Mar 07 '25 23:03 skinnypuppy

@skinnypuppy Good request. Need to see if this can be standardized enabled. I guess, this needs to be configured individually by user.

mylinuxforwork avatar Mar 24 '25 13:03 mylinuxforwork

This is what I have added to modules.ini in.config/waybar

// Temperature "temperature": { "interval": 10, "tooltip": true, "hwmon-path": [ "/sys/class/hwmon/hwmon1/temp1_input", "/sys/class/thermal/thermal_zone0/temp" ], //"thermal-zone": 0, "critical-threshold": 82, "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": [ "󰈸" ],

},``

And what I have added to style.css in .config/waybar/themes/ml4w-modern/style.css

`/* -----------------------------------------------------

  • Hardware Group
  • ----------------------------------------------------- */

#disk,#memory,#cpu,#temperature { margin:0px; padding:0px; font-size:16px; color:@iconcolor; }`

I also installed python-hwmon for all of this to work on my laptop.

Image

I can create a pull request but this would need to be added to style.css in all of the themes.

This was pulled from JaKoolit's config.

skinnypuppy avatar Mar 24 '25 22:03 skinnypuppy

Would be nice to have this für drive-temperature (nvme) too!

rowie avatar Aug 27 '25 10:08 rowie

@skinnypuppy Good request. Need to see if this can be standardized enabled. I guess, this needs to be configured individually by user.

How can i set this up manually Stephan?

rowie avatar Aug 27 '25 10:08 rowie